.
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
This commit is contained in:
parent
e9f8d8f2d0
commit
266fcf1f24
|
@ -1,3 +1,3 @@
|
||||||
docker build gitea \
|
docker build gitea \
|
||||||
--build-arg REGISTRY=${REGISTRY_DOMAIN}:${REGISTRY_PORT}/ \
|
--build-arg REGISTRY=${REGISTRY_DOMAIN}:${REGISTRY_PORT}/ \
|
||||||
-t ${REGISTRY_DOMAIN}:${REGISTRY_PORT}/gitea
|
-t ${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/gitea
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export LOCAL_DOCKER_REGISTRY=${REGISTRY_DOMAIN}:${REGISTRY_PORT}/ \
|
export LOCAL_DOCKER_REGISTRY=${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/ \
|
||||||
&& docker stack rm gitea \
|
&& docker stack rm gitea \
|
||||||
&& echo 'sleeping...zzz' \
|
&& echo 'sleeping...zzz' \
|
||||||
&& sleep 60 \
|
&& sleep 60 \
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
docker login ${REGISTRY_DOMAIN}:${REGISTRY_PORT} --username client --password "${REGISTRY_PASSWORD}"
|
|
|
@ -1 +0,0 @@
|
||||||
docker logout ${REGISTRY_DOMAIN}:${REGISTRY_PORT}
|
|
|
@ -1 +1 @@
|
||||||
docker pull ${REGISTRY_DOMAIN}:${REGISTRY_PORT}/gitea
|
docker pull ${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/gitea
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
docker push ${REGISTRY_DOMAIN}:${REGISTRY_PORT}/gitea
|
docker push ${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/gitea
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
n=0
|
|
||||||
while :
|
|
||||||
do
|
|
||||||
docker pull $2 \
|
|
||||||
&& docker tag $2 $1$2 \
|
|
||||||
&& docker push $1$2 && break # substitute your command here
|
|
||||||
n=$((n+1))
|
|
||||||
if [ $n -ge 10 ]; then
|
|
||||||
echo "initialise failed"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo "retrying..$n"
|
|
||||||
sleep 5
|
|
||||||
done
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
sh $(dirname $0)/login.sh $1 "$2" \
|
|
||||||
&& sh $(dirname $0)/initialise-image.sh $1 gitea/gitea:1.12.3-linux-amd64
|
|
|
@ -1,13 +0,0 @@
|
||||||
n=0
|
|
||||||
while :
|
|
||||||
do
|
|
||||||
docker login $1 --username client --password "$2" \
|
|
||||||
&& break # substitute your command here
|
|
||||||
n=$((n+1))
|
|
||||||
if [ $n -ge 10 ]; then
|
|
||||||
echo "login failed"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo "retrying login..$n"
|
|
||||||
sleep 5
|
|
||||||
done
|
|
Loading…
Reference in New Issue