Seafile : migrate to gitea registry : first try?

This commit is contained in:
Gitouche 2022-08-14 14:17:34 +02:00
parent 090c577020
commit 49171320c0
5 changed files with 7 additions and 3 deletions

View file

@ -8,6 +8,7 @@ seafile:
stage: test stage: test
script: script:
- cd podman-seafile - cd podman-seafile
- ./ci_build-images.sh
- GARBAYE_SEAFILE_MYSQL_ROOT_PASSWORD=ecruebdfklj GARBAYE_SEAFILE_ENV_LISTENPORT=18082 ./05_freshinstall.sh - GARBAYE_SEAFILE_MYSQL_ROOT_PASSWORD=ecruebdfklj GARBAYE_SEAFILE_ENV_LISTENPORT=18082 ./05_freshinstall.sh
- ./20_enable.sh - ./20_enable.sh
- ./30_start.sh && sleep 10 - ./30_start.sh && sleep 10

View file

@ -35,7 +35,7 @@ export memcached_release
export listen_if export listen_if
export listen_port export listen_port
source ${ABSDIR}/zz_build-images.sh podman image pull ${seafile_image}:${seafile_release} &&
podman image exists ${seafile_image}:${seafile_release} && podman image exists ${seafile_image}:${seafile_release} &&
podman pull docker.io/library/memcached:${memcached_release} && podman pull docker.io/library/memcached:${memcached_release} &&
podman pull docker.io/library/mariadb:${mariadb_release} && podman pull docker.io/library/mariadb:${mariadb_release} &&

View file

@ -16,7 +16,6 @@ Modifier la version cible dans `vars.sh` (ici pour l'exemple : `8.0.8`)
``` ```
cd /opt/services-garbaye/podman-seafile cd /opt/services-garbaye/podman-seafile
export GARBAYE_SEAFILE_MYSQL_ROOT_PASSWORD=XXXXXXXXXXXXXXXX export GARBAYE_SEAFILE_MYSQL_ROOT_PASSWORD=XXXXXXXXXXXXXXXX
./zz_build-images.sh
./40_stop.sh ./40_stop.sh
./70_disable.sh ./70_disable.sh
./80_destroy.sh ./80_destroy.sh

View file

@ -20,4 +20,8 @@ if ! podman image exists ${seafile_image}:${seafile_release}; then
${buildfolder}/image/seafile_9.0 && ${buildfolder}/image/seafile_9.0 &&
podman rmi phusion/baseimage:focal-1.0.0 podman rmi phusion/baseimage:focal-1.0.0
rm -rf ${buildfolder} rm -rf ${buildfolder}
else
echo "Image ${seafile_image}:${seafile_release} already built"
fi fi
oci_push_to_registry ${seafile_image}:${seafile_release}

View file

@ -4,7 +4,7 @@ pod_name='podman-seafile'
service_name="pod-${pod_name}.service" service_name="pod-${pod_name}.service"
mariadb_release='10.5' mariadb_release='10.5'
memcached_release='1.6' memcached_release='1.6'
seafile_image='localhost/seafileltd/seafile-mc' seafile_image='git.garbaye.fr/garbaye/seafile-mc'
seafile_release='9.0.6' seafile_release='9.0.6'
dbvolume='podman-seafile_seafile-db' dbvolume='podman-seafile_seafile-db'
datavolume='podman-seafile_seafile-data' datavolume='podman-seafile_seafile-data'