From d5cd99a59526c7ae6a8e59f6344479dbf31e8383 Mon Sep 17 00:00:00 2001 From: Glenn Date: Sat, 19 Oct 2024 12:09:21 +0200 Subject: [PATCH] ci: fix tagging --- .drone.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 16affbf..409e080 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,9 +23,9 @@ steps: from_secret: DOCKERHUB_USERNAME password: from_secret: DOCKERHUB_PASSWORD - cache_from: "glenux/service-drone-runner:latest_${DRONE_BRANCH/\\//-}" + cache_from: "glenux/service-drone-runner:${DRONE_BRANCH/\\//-}_latest" repo: glenux/service-drone-runner - tags: "${DRONE_COMMIT_SHA:0:8}" + tags: "${DRONE_BRANCH/\\//-}_${DRONE_COMMIT_SHA:0:8}" purge: false - name: publish:commit_branch @@ -38,9 +38,9 @@ steps: from_secret: DOCKERHUB_USERNAME password: from_secret: DOCKERHUB_PASSWORD - cache_from: "glenux/service-drone-runner:latest_${DRONE_BRANCH/\\//-}" + cache_from: "glenux/service-drone-runner:${DRONE_BRANCH/\\//-}_latest" repo: glenux/service-drone-runner - tags: "latest_${DRONE_BRANCH/\\//-}" + tags: "${DRONE_BRANCH/\\//-}_latest" purge: false when: branch: @@ -55,7 +55,7 @@ steps: from_secret: DOCKERHUB_USERNAME password: from_secret: DOCKERHUB_PASSWORD - cache_from: "glenux/service-drone-runner:latest_${DRONE_BRANCH/\\//-}" + cache_from: "glenux/service-drone-runner:${DRONE_BRANCH/\\//-}_latest" repo: glenux/service-drone-runner tags: latest purge: false