services-garbaye/podman-gitea/.gitlab-ci.yml
2022-05-27 13:08:01 +02:00

25 lines
901 B
YAML

# sed -n 's/^ - \(.*\)$/\1/p' .gitlab-ci.yml | bash
before_script:
- podman pod exists podman-gitea && podman pod rm --force 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
gitea:
stage: test
script:
- cd podman-gitea
- GARBAYE_GITEA_POSTGRES_PASSWORD=kejfczEAKjzkejklc GARBAYE_GITEA_ENV_WEBLISTENPORT=18088 GARBAYE_GITEA_ENV_SSHLISTENPORT=12222 ./05_freshinstall.sh
- ./20_enable.sh
- ./30_start.sh && sleep 10
- ./40_stop.sh
- ./70_disable.sh
- ./80_destroy.sh
- podman volume rm podman-gitea_gitea-data
- podman volume rm podman-gitea_gitea-pgsql
tags:
- garbaye
- compute
- podman
- x86_64