peerjs : use gitea?? as container repo
This commit is contained in:
parent
a3aff0f272
commit
0ffc6eb691
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue