diff --git a/.drone/drone-home.jsonnet b/.drone/drone-home.jsonnet index 2a89f72..2ddd728 100644 --- a/.drone/drone-home.jsonnet +++ b/.drone/drone-home.jsonnet @@ -11,7 +11,11 @@ local config = { }; [ register, - registry(config) { + registry( + config { + script: 'sh .drone/initilise-images.sh', + }, + ) { trigger +: { event +: [ 'promote', diff --git a/.drone/drone-home.yml b/.drone/drone-home.yml index 97ba0a2..c87eb0f 100644 --- a/.drone/drone-home.yml +++ b/.drone/drone-home.yml @@ -30,7 +30,7 @@ steps: commands: - set -e - export REGISTRY=$${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/ - - sh .drone/lib/initialise-images.sh $${REGISTRY} $${REGISTRY_PASSWORD} + - sh .drone/initilise-images.sh $${REGISTRY} $${REGISTRY_PASSWORD} environment: REGISTRY_DOMAIN: from_secret: registry-domain