2023-11-19 12:59:53 +00:00
|
|
|
workspace:
|
2023-11-19 13:01:33 +00:00
|
|
|
base: /home/sasha
|
|
|
|
path: woodpecker-builds/ttt-org
|
2023-11-19 12:59:53 +00:00
|
|
|
|
2023-11-19 12:26:05 +00:00
|
|
|
steps:
|
|
|
|
prepare:
|
|
|
|
image: bash
|
|
|
|
commands:
|
|
|
|
- systemctl --user stop ttt-org
|
2023-11-19 12:52:51 +00:00
|
|
|
- cp ttt-org.container /home/sasha/.config/containers/systemd
|
2023-11-19 12:26:05 +00:00
|
|
|
|
|
|
|
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
|