From c1671f6e226d13318e24b509064ff59248dc9a76 Mon Sep 17 00:00:00 2001 From: Camden Narzt Date: Tue, 16 Jul 2024 12:53:09 -0600 Subject: [PATCH] handle ghcr repo in CI --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3c3e6ca..a78d3c3 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,14 @@ VERSION = 4.0.0 ifneq ($VERSION, edge) MAJOR_VERSION := $(shell awk -v OFS=. -F. '{print $$1,$$2}' <<< $(VERSION)) endif +ifeq ($(GITHUB_ACTIONS),true) +IMG_REPO = ghcr.io +else +IMG_REPO = docker.io +endif OWNER = phusion DISABLE_OPTIMIZATIONS = 0 -IMAGE = $(OWNER)/holy-build-box +IMAGE = $(IMG_REPO)/$(OWNER)/holy-build-box .PHONY: build test tags push release