Skip to content

Commit 866caf8

Browse files
chore: include docker repo variable
Signed-off-by: Prashant Shahi <[email protected]>
1 parent d4b46d3 commit 866caf8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/build-and-publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
inputs: {}
1414

1515
env:
16+
DOCKER_REPO: coolboi567
1617
TARGET: linux/arm64,linux/amd64
1718
BUILD_FLAGS: --no-cache
1819

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
TAG = $(shell git describe --tags --always)
2+
DOCKER_REPO := $(if $(DOCKER_REPO),$(DOCKER_REPO),coolboi567)
23
USER_NAME = $(shell git config --get remote.origin.url | sed 's/\.git$$//' | tr ':.' '/' | rev | cut -d '/' -f 2 | rev)
34
REPO_NAME = $(shell git config --get remote.origin.url | sed 's/\.git$$//' | tr ':.' '/' | rev | cut -d '/' -f 1 | rev)
45
TARGET := $(if $(TARGET),$(TARGET),$(shell ./evaluate_platform.sh))
@@ -7,7 +8,7 @@ BUILD_DATE = $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
78
BUILD_FLAGS := $(if $(BUILD_FLAGS),$(BUILD_FLAGS),--load --no-cache)
89
BUILDER_NAME = k8s-wait-for-builder
910
NON_ROOT_DOCKERFILE = DockerfileNonRoot
10-
DOCKER_TAGS = $(USER_NAME)/$(REPO_NAME):$(TAG_PREFIX)latest $(USER_NAME)/$(REPO_NAME):$(TAG_PREFIX)$(TAG) ghcr.io/$(USER_NAME)/$(REPO_NAME):$(TAG_PREFIX)latest ghcr.io/$(USER_NAME)/$(REPO_NAME):$(TAG_PREFIX)$(TAG)
11+
DOCKER_TAGS = $(DOCKER_REPO)/$(REPO_NAME):$(TAG_PREFIX)latest $(DOCKER_REPO)/$(REPO_NAME):$(TAG_PREFIX)$(TAG) ghcr.io/$(USER_NAME)/$(REPO_NAME):$(TAG_PREFIX)latest ghcr.io/$(USER_NAME)/$(REPO_NAME):$(TAG_PREFIX)$(TAG)
1112

1213
all: push
1314

0 commit comments

Comments
 (0)