Browse Source

Retag released helm-operator tags without the prefix (#1063)

Aaron Kirkbride 1 year ago
parent
commit
d07783f51f
No account linked to committer's email address
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      .circleci/config.yml

+ 3
- 1
.circleci/config.yml View File

@@ -35,7 +35,9 @@ jobs:
35 35
             fi
36 36
             if echo "${CIRCLE_TAG}" | grep -Eq "helm-[0-9]+(\.[0-9]+)*(-[a-z]+)?$"; then
37 37
               docker login -u "$DOCKER_REGISTRY_USER" -p "$DOCKER_REGISTRY_PASSWORD" quay.io
38
-              docker push "quay.io/weaveworks/helm-operator:$(echo "$CIRCLE_TAG" | cut -c 6-)"
38
+              RELEASE_TAG=$(echo "$CIRCLE_TAG" | cut -c 6-)
39
+              docker tag "quay.io/weaveworks/helm-operator:${CIRCLE_TAG}" "quay.io/weaveworks/helm-operator:${RELEASE_TAG}"
40
+              docker push "quay.io/weaveworks/helm-operator:${RELEASE_TAG}"
39 41
             fi
40 42
 
41 43
 workflows:

Loading…
Cancel
Save