.
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

This commit is contained in:
Giles Bradshaw 2020-09-24 12:13:50 +01:00
parent f57e01137a
commit d8d72a3ad8
2 changed files with 17 additions and 3 deletions

View File

@ -30,9 +30,7 @@ steps:
commands:
- set -e
- export REGISTRY=$${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/
- docker login $${REGISTRY} --username client --password "$${REGISTRY_PASSWORD}"
- sh .drone/lib/initialise-images.sh $${REGISTRY}
- docker logout $${REGISTRY}
- sh .drone/lib/initialise-images.sh $${REGISTRY} $${REGISTRY_PASSWORD}
environment:
REGISTRY_DOMAIN:
from_secret: registry-domain
@ -61,6 +59,9 @@ volumes:
host:
path: /etc/docker/certs.d
image_pull_secrets:
- dockerconfigjson
trigger:
event:
- promote

View File

@ -1,2 +1,15 @@
n=0
while :
do
docker login $1 --username client --password $2 \
&& break # substitute your command here
n=$((n+1))
echo "retrying login..$n"
sleep 15
done
docker login $1 --username client --password $2
sh $(dirname $0)/initialise-image.sh $1 drone/drone:1.9.0 \
&& sh $(dirname $0)/initialise-image.sh $1 drone/drone-runner-docker:1.5.0