Skip to content

Commit

Permalink
Merge pull request #858 from garden-io/fix-docker-tag
Browse files Browse the repository at this point in the history
chore(release): update latest tag on docker images when tagging releases
  • Loading branch information
thsig authored Jun 20, 2019
2 parents 4f7855c + d5a8739 commit 68e1ccc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ commands:
docker build -t << parameters.context >> --build-arg TAG=$TAG << parameters.context >>
docker tag << parameters.context >> << parameters.registry >>/<< parameters.image >>:$TAG
docker push << parameters.registry >>/<< parameters.image >>:$TAG
# Set the latest tag as well for tagged releases
if [ "$TAG" == "$CIRCLE_TAG" ]; then
docker tag << parameters.context >> << parameters.registry >>/<< parameters.image >>:latest
docker push << parameters.registry >>/<< parameters.image >>:latest
fi
configure_kubectl_context:
description: Configure the kubectl context so that we can access our remote cluster. Used for integration testing.
Expand Down

0 comments on commit 68e1ccc

Please sign in to comment.