Gitea image in gitea container repo first try??

This commit is contained in:
Gitouche 2022-08-13 23:14:13 +02:00
parent d68242a5e3
commit 090c577020
4 changed files with 7 additions and 2 deletions

View file

@ -9,6 +9,7 @@ gitea:
stage: test stage: test
script: script:
- cd podman-gitea - cd podman-gitea
- ./ci_build-images.sh
- GARBAYE_GITEA_POSTGRES_PASSWORD=kejfczEAKjzkejklc GARBAYE_GITEA_ENV_WEBLISTENPORT=18088 GARBAYE_GITEA_ENV_SSHLISTENPORT=12222 ./05_freshinstall.sh - GARBAYE_GITEA_POSTGRES_PASSWORD=kejfczEAKjzkejklc GARBAYE_GITEA_ENV_WEBLISTENPORT=18088 GARBAYE_GITEA_ENV_SSHLISTENPORT=12222 ./05_freshinstall.sh
- ./20_enable.sh - ./20_enable.sh
- ./30_start.sh && sleep 10 - ./30_start.sh && sleep 10

View file

@ -50,7 +50,7 @@ export weblisten_port
export sshlisten_if export sshlisten_if
export sshlisten_port export sshlisten_port
source ${ABSDIR}/zz_build-images.sh podman image pull ${gitea_image}:${gitea_version} &&
podman image exists ${gitea_image}:${gitea_version} && podman image exists ${gitea_image}:${gitea_version} &&
podman pull ${postgres_image}:${postgres_version} && podman pull ${postgres_image}:${postgres_version} &&
# force refresh of app.ini # force refresh of app.ini

View file

@ -21,4 +21,8 @@ if ! podman image exists ${gitea_image}:${gitea_version}; then
podman image prune -a -f --filter intermediate=true podman image prune -a -f --filter intermediate=true
podman image rm -f $(podman images -a -q -- docker.io/library/golang) podman image rm -f $(podman images -a -q -- docker.io/library/golang)
podman image rm -f $(podman images -a -q -- docker.io/library/alpine) podman image rm -f $(podman images -a -q -- docker.io/library/alpine)
else
echo "Image ${gitea_image}:${gitea_version} already built"
fi fi
oci_push_to_registry ${gitea_image}:${gitea_version}

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
## vars ## vars
gitea_image="localhost/gitea/gitea" gitea_image="git.garbaye.fr/garbaye/gitea"
gitea_version='1.17.0' gitea_version='1.17.0'
postgres_image="docker.io/library/postgres" postgres_image="docker.io/library/postgres"
postgres_version='14' postgres_version='14'