.
This commit is contained in:
parent
f57e01137a
commit
d8d72a3ad8
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue