From a64f38f6dbca3859edd48d26eae72cd290a5f4a3 Mon Sep 17 00:00:00 2001 From: Olliver Schinagl Date: Sun, 21 Mar 2021 22:55:32 +0100 Subject: [PATCH] add: Also tag the latest build for alpine It is quite common, and upstream postgres does so as well, to also tag a 'latest' for alpine. In this case, this would result in `postgis:alpine` being the latest stable alpine release. This makes it easier (albeit riskier) to track the latest stable postgis release. The risk should be acceptable however, as the same risk would be taken when tracking `postgis:latest` so it really is up to the user. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index eda5dbff..5479297e 100644 --- a/Makefile +++ b/Makefile @@ -114,6 +114,7 @@ $(foreach version,$(VERSIONS),$(eval $(call test-version,$(version)))) tag-latest: $(BUILD_LATEST_DEP) $(DOCKER) image tag $(REPO_NAME)/$(IMAGE_NAME):$(LATEST_VERSION) $(REPO_NAME)/$(IMAGE_NAME):latest + $(DOCKER) image tag $(REPO_NAME)/$(IMAGE_NAME):$(LATEST_VERSION)-alpine $(REPO_NAME)/$(IMAGE_NAME):alpine ### RULES FOR PUSHING ### @@ -135,6 +136,7 @@ $(foreach version,$(VERSIONS),$(eval $(call push-version,$(version)))) push-latest: tag-latest $(PUSH_LATEST_DEP) $(DOCKER) image push $(REPO_NAME)/$(IMAGE_NAME):latest + $(DOCKER) image push $(REPO_NAME)/$(IMAGE_NAME):alpine @$(DOCKER) run -v "$(PWD)":/workspace \ -e DOCKERHUB_USERNAME='$(DOCKERHUB_USERNAME)' \ -e DOCKERHUB_PASSWORD='$(DOCKERHUB_PASSWORD)' \