From 7df70294d380ef6fc2015ddd3351dd67d3007488 Mon Sep 17 00:00:00 2001 From: polwex Date: Sun, 19 Apr 2026 06:34:39 +0700 Subject: [PATCH] m --- .woodpecker/job.yaml | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) 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