From b0ce5b61319fda4c30b33e8c17e72dc1504eb8c0 Mon Sep 17 00:00:00 2001 From: Mehdi BEN ABDALLAH Date: Tue, 1 Feb 2022 22:27:15 +0100 Subject: [PATCH] support building and publishing to other docker registry --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 65cc70b..87e4c59 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +TARGET_DOCKER_REGISTRY_URL?=https://hub.docker.com/v2/repositories/ DOCKER_IMAGE_NAME?=mbenabda/promtool PROMTOOL_VERSION= BASE_IMAGE= @@ -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" ]; \