kotsukotsu/.woodpecker/job.yaml
polwex cc5c91a9b6
Some checks failed
ci/woodpecker/push/job Pipeline failed
m
2026-04-19 06:49:47 +07:00

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