From 04fd28863f03d7a6de91cfae6092cf525e9fdcd1 Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Thu, 24 Sep 2020 13:41:08 +0100 Subject: [PATCH] . --- .drone/drone-home.jsonnet | 6 +++++- .drone/drone-home.yml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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