.
This commit is contained in:
parent
f57e01137a
commit
d8d72a3ad8
|
@ -30,9 +30,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- set -e
|
- set -e
|
||||||
- export REGISTRY=$${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/
|
- export REGISTRY=$${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/
|
||||||
- docker login $${REGISTRY} --username client --password "$${REGISTRY_PASSWORD}"
|
- sh .drone/lib/initialise-images.sh $${REGISTRY} $${REGISTRY_PASSWORD}
|
||||||
- sh .drone/lib/initialise-images.sh $${REGISTRY}
|
|
||||||
- docker logout $${REGISTRY}
|
|
||||||
environment:
|
environment:
|
||||||
REGISTRY_DOMAIN:
|
REGISTRY_DOMAIN:
|
||||||
from_secret: registry-domain
|
from_secret: registry-domain
|
||||||
|
@ -61,6 +59,9 @@ volumes:
|
||||||
host:
|
host:
|
||||||
path: /etc/docker/certs.d
|
path: /etc/docker/certs.d
|
||||||
|
|
||||||
|
image_pull_secrets:
|
||||||
|
- dockerconfigjson
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- promote
|
- 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:1.9.0 \
|
||||||
&& sh $(dirname $0)/initialise-image.sh $1 drone/drone-runner-docker:1.5.0
|
&& sh $(dirname $0)/initialise-image.sh $1 drone/drone-runner-docker:1.5.0
|
Loading…
Reference in New Issue