www.techtransthai.org/.woodpecker.yml

19 lines
449 B
YAML

steps:
prepare:
image: bash
commands:
- systemctl --user stop ttt-org
- cp ttt-org.container ~/.config/containers/systemd
container-build:
image: bash
commands:
- sed -i "s/DATE/$(date -I)/g" index.html
- sed -i "s/VERSION/$(git log -1 --oneline | awk '{print $1}')/g" index.html
- podman build -t ttt-org .
container-deploy:
image: bash
commands:
- systemctl --user start ttt-org