parent
2a8804ca02
commit
7df70294d3
1 changed files with 26 additions and 8 deletions
|
|
@ -1,9 +1,27 @@
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
- branch: master
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
deploy:
|
- name: smoke
|
||||||
commands:
|
image: bash
|
||||||
- sh ~/nixconf/update.sh
|
commands:
|
||||||
- nh os switch -H sortug ~/nixconf --target-host root@sortug
|
- 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue