2022-04-30 14:38:19 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Check
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "Check"
|
|
|
|
image: docker.nix-community.org/nixpkgs/nix-flakes:latest
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
environment:
|
|
|
|
NIX_FLAGS: "--print-build-logs --verbose"
|
|
|
|
commands:
|
|
|
|
- 'echo DEBUG: Using NIX_FLAGS: $NIX_FLAGS'
|
2022-08-14 19:40:29 +00:00
|
|
|
- nix $$NIX_FLAGS develop --command nix flake show
|
2022-04-30 14:38:19 +00:00
|
|
|
- nix $$NIX_FLAGS build ".#nixosConfigurations.PubSolarOS.config.system.build.toplevel"
|
2022-02-03 10:24:02 +00:00
|
|
|
|
2022-08-13 20:14:36 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: exec
|
|
|
|
name: Tests
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "Tests"
|
|
|
|
environment:
|
|
|
|
NIX_FLAGS: "--print-build-logs --verbose"
|
|
|
|
commands:
|
|
|
|
- 'echo DEBUG: Using NIX_FLAGS: $NIX_FLAGS'
|
|
|
|
- nix $$NIX_FLAGS build ".#checks.x86_64-linux.customTestFor-PubSolarOS-firstTest"
|
2022-08-14 18:51:56 +00:00
|
|
|
- nix-store --read-log result
|
|
|
|
- nix $$NIX_FLAGS flake check
|
|
|
|
- nix $$NIX_FLAGS develop --command echo OK
|
|
|
|
|
2022-08-14 19:40:29 +00:00
|
|
|
- name: "Upload artifacts"
|
|
|
|
commands:
|
2022-08-14 19:46:22 +00:00
|
|
|
- export TARGET_DIR="$${DRONE_REPO}/$${DRONE_BUILD_NUMBER}"
|
2022-08-14 19:40:29 +00:00
|
|
|
- echo env var TARGET_DIR is set to $$TARGET_DIR
|
|
|
|
- nix flake new --template "git+https://git.greenbaum.cloud/dev/tritonshell?ref=main" ./tritonshell
|
2022-08-14 19:46:22 +00:00
|
|
|
- git add tritonshell
|
2022-08-14 19:40:29 +00:00
|
|
|
- cd tritonshell
|
|
|
|
- nix develop --command triton profile set lev-1.pub.solar \
|
|
|
|
&& mput -p -f ./result/foot_wayland_info.png ~~/public/$${DRONE_REPO}/$${DRONE_BUILD_NUMBER} \
|
|
|
|
&& mput -p -f ./result/test-wayland.out ~~/public/$${DRONE_REPO}/$${DRONE_BUILD_NUMBER}
|
|
|
|
|
2022-08-14 18:51:56 +00:00
|
|
|
trigger:
|
|
|
|
ref:
|
|
|
|
- refs/tags/v*
|
|
|
|
- refs/tags/t*
|
2022-08-13 20:14:36 +00:00
|
|
|
|
2021-10-24 20:55:28 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Publish ISO
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "Build ISO"
|
2022-02-02 14:08:24 +00:00
|
|
|
image: docker.nix-community.org/nixpkgs/nix-flakes:latest
|
2022-08-14 18:51:56 +00:00
|
|
|
environment:
|
|
|
|
NIX_FLAGS: "--print-build-logs --verbose"
|
2021-10-24 20:55:28 +00:00
|
|
|
volumes:
|
2022-02-03 10:24:02 +00:00
|
|
|
- name: file-exchange
|
2021-10-24 21:13:13 +00:00
|
|
|
path: /var/nix/iso-cache
|
2021-10-24 20:55:28 +00:00
|
|
|
commands:
|
2022-02-03 11:13:56 +00:00
|
|
|
- |
|
2022-08-14 18:51:56 +00:00
|
|
|
nix $$NIX_FLAGS build \
|
|
|
|
'.#nixosConfigurations.bootstrap.config.system.build.bootstrapIso'
|
2021-10-24 21:13:13 +00:00
|
|
|
- cp $(readlink -f result)/iso/*.iso /var/nix/iso-cache/
|
2021-10-24 20:55:28 +00:00
|
|
|
|
|
|
|
- name: "Publish ISO"
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
volumes:
|
2022-02-03 10:24:02 +00:00
|
|
|
- name: file-exchange
|
2021-10-24 21:13:13 +00:00
|
|
|
path: /var/nix/iso-cache
|
2021-10-24 20:55:28 +00:00
|
|
|
settings:
|
|
|
|
host:
|
|
|
|
from_secret: ssh_host
|
|
|
|
user:
|
|
|
|
from_secret: ssh_user
|
|
|
|
port:
|
|
|
|
from_secret: ssh_port
|
|
|
|
key:
|
|
|
|
from_secret: ssh_key
|
2022-05-01 23:22:49 +00:00
|
|
|
target: /srv/os
|
2021-10-24 20:55:28 +00:00
|
|
|
source:
|
2021-10-25 19:51:13 +00:00
|
|
|
- /var/nix/iso-cache/*.iso
|
2021-10-26 08:14:42 +00:00
|
|
|
strip_components: 3
|
2021-10-24 20:55:28 +00:00
|
|
|
|
2022-04-30 15:03:00 +00:00
|
|
|
depends_on:
|
|
|
|
- Check
|
2022-02-03 00:22:36 +00:00
|
|
|
|
2021-10-26 08:40:03 +00:00
|
|
|
trigger:
|
2022-08-14 18:51:56 +00:00
|
|
|
branch:
|
|
|
|
- main
|
2021-10-26 08:40:03 +00:00
|
|
|
event:
|
2022-08-14 18:51:56 +00:00
|
|
|
- push
|
2021-10-26 08:40:03 +00:00
|
|
|
|
2021-10-24 20:55:28 +00:00
|
|
|
volumes:
|
2022-02-03 10:24:02 +00:00
|
|
|
- name: file-exchange
|
|
|
|
temp: {}
|
2021-10-24 20:55:28 +00:00
|
|
|
|
2021-06-14 23:28:23 +00:00
|
|
|
---
|
|
|
|
kind: signature
|
2022-08-14 19:46:22 +00:00
|
|
|
hmac: f226b14a22ff686348fbb1f88b6759089a1a46f18a72ebd70bd7f170c262f99a
|
2021-06-14 23:28:23 +00:00
|
|
|
|
|
|
|
...
|