From 3daaf01c9811501f2b4c691f6910e3df285c2007 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Fri, 8 Dec 2023 18:44:07 +0100 Subject: [PATCH] Try yaml anchors --- .drone.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 77a82dd..576660b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,19 +7,22 @@ name: Build the builder trigger: event: - push -environment: - BUILDER_VERSION: 555262114ea81f6f286010474527f419b56d33a3 + +image-anchor: &image-anchor + image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:555262114ea81f6f286010474527f419b56d33a3 + steps: - - name: Build and push the docker image - image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:${BUILDER_VERSION} + - <<: *image-anchor + name: Build and push the docker image privileged: true environment: GITEA_TOKEN: from_secret: GITEA_TOKEN commands: - build-container - - name: Cleanup registry - image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:${BUILDER_VERSION} + + - <<: *image-anchor + name: Cleanup registry environment: GITEA_TOKEN: from_secret: GITEA_TOKEN