From 5d6be689d2b796241b1a6c663f370554eef9d515 Mon Sep 17 00:00:00 2001 From: DutchEllie Date: Sat, 12 Mar 2022 21:32:02 +0100 Subject: [PATCH] Added SHA tags --- .drone.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index aed3fcf..877a361 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,7 +15,9 @@ steps: password: from_secret: docker_password repo: dutchellie/proper-website-2 - tags: latest + tags: + - latest + - ${DRONE_COMMIT_SHA:0:8} - name: deploy-staging image: pelotech/drone-helm3 @@ -28,6 +30,8 @@ steps: values_files: # - .drone/helm/values.yaml - .drone/helm/staging-val.yaml + values: + - "image=dutchellie/proper-website-2:${DRONE_COMMIT_SHA:0:8}" kube_api_server: from_secret: staging_api_server kube_token: @@ -58,7 +62,9 @@ steps: password: from_secret: docker_password repo: dutchellie/proper-website-2 - tags: latest + tags: + - latest + - ${DRONE_COMMIT_SHA:0:8} - name: deploy-production image: pelotech/drone-helm3 @@ -71,6 +77,8 @@ steps: values_files: # - .drone/helm/values.yaml - .drone/helm/prod-val.yaml + values: + - "image=dutchellie/proper-website-2:${DRONE_COMMIT_SHA:0:8}" kube_api_server: from_secret: prod_api_server kube_token: