Skip to content

Commit

Permalink
support building and publishing to other docker registry
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehdi BEN ABDALLAH committed Feb 1, 2022
1 parent ba8a4fd commit b0ce5b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
TARGET_DOCKER_REGISTRY_URL?=https://hub.docker.com/v2/repositories/
DOCKER_IMAGE_NAME?=mbenabda/promtool
PROMTOOL_VERSION=
BASE_IMAGE=
Expand Down Expand Up @@ -36,7 +37,7 @@ sync_missing_versions:
NEXT_PAGE=$$(cat $$TMP/page.json | jq -rM '.next'); \
done; \
\
curl -s https://hub.docker.com/v2/repositories/$(DOCKER_IMAGE_NAME)/tags/ > $$TMP/page.json; \
curl -s $(TARGET_DOCKER_REGISTRY_URL)$(DOCKER_IMAGE_NAME)/tags/ > $$TMP/page.json; \
cat $$TMP/page.json | jq -r '.results[] | .name' >> "$$TMP/promtool.tags"; \
NEXT_PAGE=$$(cat $$TMP/page.json | jq -rM '.next'); \
while [ "$$NEXT_PAGE" != "null" ]; \
Expand Down

0 comments on commit b0ce5b6

Please sign in to comment.