From 4fbf104d7438b54442b4edf20b6e054aa69e856b Mon Sep 17 00:00:00 2001 From: Glenn Date: Tue, 6 Aug 2024 16:12:01 +0200 Subject: [PATCH] cicd: fix build naming --- .drone.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 80087de..94d336c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,9 +40,11 @@ steps: from_secret: DOCKERHUB_USERNAME password: from_secret: DOCKERHUB_PASSWORD - cache_from: "glenux/service-dolibarr:latest_${DRONE_BRANCH/\\//-}" + cache_from: "glenux/service-dolibarr:${DRONE_BRANCH/\\//-}_latest" repo: glenux/service-dolibarr - tags: "latest_${DRONE_BRANCH/\\//-}" + tags: + - "${DRONE_BRANCH/\\//-}_latest" + - "${DRONE_BRANCH/\\//-}_${DRONE_COMMIT_SHA:0:8}" purge: false when: branch: @@ -57,7 +59,7 @@ steps: from_secret: DOCKERHUB_USERNAME password: from_secret: DOCKERHUB_PASSWORD - cache_from: "glenux/service-dolibarr:latest_${DRONE_BRANCH/\\//-}" + cache_from: "glenux/service-dolibarr:${DRONE_BRANCH/\\//-}_latest" repo: glenux/service-dolibarr tags: latest purge: false