Skip to content

Commit

Permalink
Prevent rc images from getting tagged as latest in dockerhub (closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed May 9, 2023
1 parent 2960f9e commit f70023a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@ http-down:
# RELEASE
# -----------------------------------------------------------------------------

# Make & push docker assets, don't tag as latest if there's a `-` in the version (eg. 0.1.0-rc1)
container-release:
@-docker login --username $(DOCKER_USERNAME) --password $(DOCKER_PASSWORD)
docker push $(container_name):$(aws_only_version)
docker push $(container_name):$(version)
docker tag ${container_name}:${version} ${container_name}:latest
docker push $(container_name):latest
if ! [[ $(version) =~ "-" ]]; then docker tag ${container_name}:${version} ${container_name}:latest; docker push $(container_name):latest; fi;

# -----------------------------------------------------------------------------
# CLEANUP
Expand Down

0 comments on commit f70023a

Please sign in to comment.