peerjs : use gitea?? as container repo

This commit is contained in:
Gitouche 2022-08-12 19:42:46 +02:00
parent a3aff0f272
commit 0ffc6eb691
2 changed files with 6 additions and 1 deletions

View file

@ -4,5 +4,5 @@ container_name='peerjs-server'
service_name="container-${container_name}.service"
listen_if="${GARBAYE_PEERJS_ENV_LISTENIF:-127.0.0.1}"
listen_port="${GARBAYE_PEERJS_ENV_LISTENPORT:-8081}"
upstream_images='localhost/peerjs/peerjs-server'
upstream_images='git.garbaye.fr/garbaye/peerjs-server'
version='0.6.1'

View file

@ -17,3 +17,8 @@ if ! podman image exists ${upstream_images}:${version}; then
podman rmi docker.io/library/node:alpine
rm -rf ${buildfolder}
fi
if ! skopeo inspect --format "ok" docker://${upstream_images}:${version}
podman login --username ${CONTAINER_REPO_USER} --password ${CONTAINER_REPO_PASSWORD} ${upstream_images%%/*}
for i in $(seq 1 3); do podman push ${upstream_images}:${version} && s=0 && break || s=$? && sleep 1; done; (exit $s)
fi