Skip to content

Commit a64f38f

Browse files
committed
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.
1 parent 27f716f commit a64f38f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ $(foreach version,$(VERSIONS),$(eval $(call test-version,$(version))))
114114

115115
tag-latest: $(BUILD_LATEST_DEP)
116116
$(DOCKER) image tag $(REPO_NAME)/$(IMAGE_NAME):$(LATEST_VERSION) $(REPO_NAME)/$(IMAGE_NAME):latest
117+
$(DOCKER) image tag $(REPO_NAME)/$(IMAGE_NAME):$(LATEST_VERSION)-alpine $(REPO_NAME)/$(IMAGE_NAME):alpine
117118

118119

119120
### RULES FOR PUSHING ###
@@ -135,6 +136,7 @@ $(foreach version,$(VERSIONS),$(eval $(call push-version,$(version))))
135136

136137
push-latest: tag-latest $(PUSH_LATEST_DEP)
137138
$(DOCKER) image push $(REPO_NAME)/$(IMAGE_NAME):latest
139+
$(DOCKER) image push $(REPO_NAME)/$(IMAGE_NAME):alpine
138140
@$(DOCKER) run -v "$(PWD)":/workspace \
139141
-e DOCKERHUB_USERNAME='$(DOCKERHUB_USERNAME)' \
140142
-e DOCKERHUB_PASSWORD='$(DOCKERHUB_PASSWORD)' \

0 commit comments

Comments
 (0)