diff --git a/.woodpecker/job.yaml b/.woodpecker/job.yaml index c0ffef9..acacdd5 100644 --- a/.woodpecker/job.yaml +++ b/.woodpecker/job.yaml @@ -1,9 +1,27 @@ - when: - - event: push - - branch: master +when: + - event: push - steps: - deploy: - commands: - - sh ~/nixconf/update.sh - - nh os switch -H sortug ~/nixconf --target-host root@sortug +steps: + - name: smoke + image: bash + commands: + - pwd + - whoami + - hostname + - git rev-parse --short HEAD + - test -d ~/nixconf + - printf '%s %s %s\n' "$(date --iso-8601=seconds)" "$(hostname)" "$(git rev-parse --short HEAD)" >> ~/woodpecker-smoke.log + - tail -n 5 ~/woodpecker-smoke.log + +--- + +when: + - event: push + - branch: master + +steps: + - name: deploy + image: bash + commands: + - sh ~/nixconf/update.sh + - nh os switch -H sortug ~/nixconf --target-host root@sortug