28 lines
635 B
YAML
28 lines
635 B
YAML
when:
|
|
- event: push
|
|
|
|
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
|
|
- nixos-rebuild switch --flake ~/nixconf#sortug --target-host root@sortug
|