auto cleanup old images
This commit is contained in:
parent
13843f0e0b
commit
639bd8ff3e
1 changed files with 1 additions and 2 deletions
|
@ -3,16 +3,15 @@ steps:
|
||||||
image: bash
|
image: bash
|
||||||
commands:
|
commands:
|
||||||
- systemctl --user stop ttt-org
|
- systemctl --user stop ttt-org
|
||||||
|
- podman image rm localhost/ttt-org
|
||||||
- cp ttt-org.container /home/sasha/.config/containers/systemd
|
- cp ttt-org.container /home/sasha/.config/containers/systemd
|
||||||
- systemctl --user daemon-reload
|
- systemctl --user daemon-reload
|
||||||
- cat index.html
|
|
||||||
|
|
||||||
container-build:
|
container-build:
|
||||||
image: bash
|
image: bash
|
||||||
commands:
|
commands:
|
||||||
- sed -i "s/DATE/$(date -I)/g" index.html
|
- sed -i "s/DATE/$(date -I)/g" index.html
|
||||||
- sed -i "s/VERSION/$(git log -1 --oneline | awk '{print $1}')/g" index.html
|
- sed -i "s/VERSION/$(git log -1 --oneline | awk '{print $1}')/g" index.html
|
||||||
- cat index.html
|
|
||||||
- podman build -t ttt-org .
|
- podman build -t ttt-org .
|
||||||
|
|
||||||
container-deploy:
|
container-deploy:
|
||||||
|
|
Loading…
Reference in a new issue