Use SSH Pipeline for build check

Benjamin Bädorf 3 months ago
parent 8c8250aae0
commit b600d932a5
Signed by: b12f
GPG Key ID: 4406E80E13CD656C
  1. 36
      .drone.yml

@ -93,20 +93,34 @@ type: docker
name: Check
steps:
- name: "Check"
image: docker.nix-community.org/nixpkgs/nix-flakes:latest
- name: ssh
image: appleboy/drone-ssh
when:
event:
- pull_request
- tag
environment:
NIX_FLAGS: "--print-build-logs --verbose"
commands:
- 'echo DEBUG: Using NIX_FLAGS: $NIX_FLAGS'
- nix $$NIX_FLAGS flake check
- nix $$NIX_FLAGS build ".#nixosConfigurations.PubSolarOS.config.system.build.toplevel"
- nix $$NIX_FLAGS develop --command echo OK
- nix $$NIX_FLAGS develop --command bud --help
settings:
host:
- 192.168.178.161
username:
from_secret: ssh_username
port: 22
key:
from_secret: ssh_key
proxy_host: backup.b12f.io
proxy_username:
from_secret: ssh_proxy_username
proxy_key:
from_secret: ssh_proxy_key
command_timeout: 2m
script:
- 'export NIX_FLAGS="--print-build-logs --verbose"'
- 'echo DEBUG: Using NIX_FLAGS: $NIX_FLAGS'
- nix $$NIX_FLAGS flake check
- nix $$NIX_FLAGS build ".#nixosConfigurations.PubSolarOS.config.system.build.toplevel"
- nix $$NIX_FLAGS develop --command echo OK
- nix $$NIX_FLAGS develop --command bud --help
- nix $$NIX_FLAGS build ".#checks.x86_64-linux.customTestFor-PubSolarOS-firstTest"
---
kind: pipeline
@ -158,6 +172,6 @@ volumes:
---
kind: signature
hmac: bdbefb07b97dc8efc44d8eb36ee4d1bb89eec3b7255b49929e126e86a4b4a788
hmac: 64ce8f21e4072d1b6377cac86066dcd946efab6d80543fbf0a2eba74b746cf2a
...

Loading…
Cancel
Save