CI : simplifications avec --force

This commit is contained in:
Gitouche 2022-12-13 21:38:58 +01:00
parent b0ea51546f
commit 93cc44966f
10 changed files with 29 additions and 29 deletions

View file

@ -1,9 +1,9 @@
# Si besoin d'executer le before_script manuellement :
# sed -n 's/^ - \(.*\)$/\1/p' .gitlab-ci.yml | bash
before_script:
- podman pod exists pod_podman-framadate && podman pod rm --force pod_podman-framadate
- podman pod rm --force pod_podman-framadate
- rm -f ~/.config/systemd/user/pod-podman-framadate.service && systemctl --user daemon-reload
- podman volume exists podman-framadate_framadate-db && podman volume rm podman-framadate_framadate-db
- podman volume rm --force podman-framadate_framadate-db
framadate:
stage: test

View file

@ -1,10 +1,10 @@
# Si besoin d'executer le before_script manuellement :
# sed -n 's/^ - \(.*\)$/\1/p' .gitlab-ci.yml | bash
before_script:
- podman pod exists pod_podman-gitea && podman pod rm --force pod_podman-gitea
- podman pod rm --force pod_podman-gitea
- rm -f ~/.config/systemd/user/pod-podman-gitea.service && systemctl --user daemon-reload
- podman volume exists podman-gitea_gitea-data && podman volume rm podman-gitea_gitea-data
- podman volume exists podman-gitea_gitea-pgsql && podman volume rm podman-gitea_gitea-pgsql
- podman volume rm --force podman-gitea_gitea-data
- podman volume rm --force podman-gitea_gitea-pgsql
gitea:
stage: test

View file

@ -1,11 +1,11 @@
# Si besoin d'executer le before_script manuellement :
# sed -n 's/^ - \(.*\)$/\1/p' .gitlab-ci.yml | bash
before_script:
- podman pod exists pod_podman-hedgedoc && podman pod rm --force pod_podman-hedgedoc
- podman pod rm --force pod_podman-hedgedoc
- rm -f ~/.config/systemd/user/pod-podman-hedgedoc.service && systemctl --user daemon-reload
- podman volume exists podman-hedgedoc_data && podman volume rm podman-hedgedoc_data
- podman volume exists podman-hedgedoc_database && podman volume rm podman-hedgedoc_database
- podman volume exists podman-hedgedoc_uploads && podman volume rm podman-hedgedoc_uploads
- podman volume rm --force podman-hedgedoc_data
- podman volume rm --force podman-hedgedoc_database
- podman volume rm --force podman-hedgedoc_uploads
hedgedoc:
stage: test

View file

@ -1,7 +1,7 @@
# Si besoin d'executer le before_script manuellement :
# sed -n 's/^ - \(.*\)$/\1/p' .gitlab-ci.yml | bash
before_script:
- podman pod exists pod_podman-jitsi && podman pod rm --force pod_podman-jitsi
- podman pod rm --force pod_podman-jitsi
- rm -f ~/.config/systemd/user/pod-podman-jitsi.service && systemctl --user daemon-reload
- podman unshare rm -rf ~/.jitsi-meet-cfg

View file

@ -1,13 +1,13 @@
# Si besoin d'executer le before_script manuellement :
# sed -n 's/^ - \(.*\)$/\1/p' .gitlab-ci.yml | bash
before_script:
- podman pod exists pod_podman-matrix && podman pod rm --force pod_podman-matrix
- podman network exists podman-matrix_default && podman network rm --force podman-matrix_default
- podman container exists synapse-generate && podman container rm --force synapse-generate
- podman container exists buildkitd && podman container rm --force buildkitd
- podman pod rm --force pod_podman-matrix
- podman network rm --force podman-matrix_default
- podman container rm --force synapse-generate
- podman container rm --force buildkitd
- rm -f ~/.config/systemd/user/pod-podman-matrix.service && systemctl --user daemon-reload
- podman volume exists matrixdotorg_synapse-data && podman volume rm matrixdotorg_synapse-data
- podman volume exists matrixdotorg_synapse-pgsql && podman volume rm matrixdotorg_synapse-pgsql
- podman volume rm --force matrixdotorg_synapse-data
- podman volume rm --force matrixdotorg_synapse-pgsql
matrix:
stage: test

View file

@ -3,7 +3,7 @@
before_script:
- podman container rm --force podman-ntfy
- rm -f ~/.config/systemd/user/container-podman-ntfy.service && systemctl --user daemon-reload
- podman volume rm -f ntfy-data
- podman volume rm --force ntfy-data
ntfy:
stage: test

View file

@ -1,7 +1,7 @@
# Si besoin d'executer le before_script manuellement :
# sed -n 's/^ - \(.*\)$/\1/p' .gitlab-ci.yml | bash
before_script:
- podman container exists podman-peerjs && podman container rm --force podman-peerjs
- podman container rm --force podman-peerjs
- rm -f ~/.config/systemd/user/container-podman-peerjs.service && systemctl --user daemon-reload
peerjs:

View file

@ -1,12 +1,12 @@
# Si besoin d'executer le before_script manuellement :
# sed -n 's/^ - \(.*\)$/\1/p' .gitlab-ci.yml | bash
before_script:
- podman container exists podman-privatebin && podman container rm --force podman-privatebin
- podman container rm --force podman-privatebin
- rm -f ~/.config/systemd/user/container-podman-privatebin.service && systemctl --user daemon-reload
- podman volume exists privatebin-data && podman volume rm privatebin-data
- podman volume exists privatebin-var-lib-nginx-tmp && podman volume rm privatebin-var-lib-nginx-tmp
- podman volume exists privatebin-run && podman volume rm privatebin-run
- podman volume exists privatebin-tmp && podman volume rm privatebin-tmp
- podman volume rm --force privatebin-data
- podman volume rm --force privatebin-var-lib-nginx-tmp
- podman volume rm --force privatebin-run
- podman volume rm --force privatebin-tmp
privatebin:
stage: test

View file

@ -1,10 +1,10 @@
# Si besoin d'executer le before_script manuellement :
# sed -n 's/^ - \(.*\)$/\1/p' .gitlab-ci.yml | bash
before_script:
- podman pod exists pod_podman-seafile && podman pod rm --force pod_podman-seafile
- podman pod rm --force pod_podman-seafile
- rm -f ~/.config/systemd/user/pod-podman-seafile.service && systemctl --user daemon-reload
- podman volume exists podman-seafile_seafile-db && podman volume rm podman-seafile_seafile-db
- podman volume exists podman-seafile_seafile-data && podman volume rm podman-seafile_seafile-data
- podman volume rm --force podman-seafile_seafile-db
- podman volume rm --force podman-seafile_seafile-data
seafile:
stage: test

View file

@ -1,10 +1,10 @@
# Si besoin d'executer le before_script manuellement :
# sed -n 's/^ - \(.*\)$/\1/p' .gitlab-ci.yml | bash
before_script:
- podman pod exists pod_podman-vaultwarden && podman pod rm --force pod_podman-vaultwarden
- podman pod rm --force pod_podman-vaultwarden
- rm -f ~/.config/systemd/user/pod-podman-vaultwarden.service && systemctl --user daemon-reload
- podman volume exists podman-vaultwarden_data && podman volume rm podman-vaultwarden_data
- podman volume exists podman-vaultwarden_database && podman volume rm podman-vaultwarden_database
- podman volume rm --force podman-vaultwarden_data
- podman volume rm --force podman-vaultwarden_database
vaultwarden:
stage: test