parent
2a8804ca02
commit
7df70294d3
1 changed files with 26 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue