diff --git a/.drone/drone-home.jsonnet b/.drone/drone-home.jsonnet index e7f60a3..33286f8 100644 --- a/.drone/drone-home.jsonnet +++ b/.drone/drone-home.jsonnet @@ -14,6 +14,11 @@ local config = { registry( config { script: 'sh .drone/scripts/initialise-images.sh', + secrets: [ + 'REGISTRY_PASSWORD', + 'REGISTRY_DOMAIN', + 'REGISTRY_PORT', + ] }, ) { trigger +: { diff --git a/.drone/scripts/login.sh b/.drone/scripts/login.sh index 5a3fe4f..314482d 100644 --- a/.drone/scripts/login.sh +++ b/.drone/scripts/login.sh @@ -7,6 +7,3 @@ do echo "retrying login..$n" sleep 1 done - -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 \ No newline at end of file