Skip to content

Commit

Permalink
fix(docker): Fix GHCR → Docker Hub copy used when releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Mar 3, 2022
1 parent 5a950d8 commit e5d83d0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ include $(wildcard $(DEPFILES))

CLEANFILES = $(BUILT_SOURCES) .version-prev $(bin_SCRIPTS) $(dist_man_MANS) $(DEPFILES) $(ACTUALS) $(TESTPDFS) $(MANUAL) Makefile-distfiles $(_BUILT_SUBDIRS)

export GHCR_REGISTRY ?= ghcr.io
export GHCR_REPO ?= sile-typesetter/$(TRANSFORMED_PACKAGE_NAME)

export DOCKER_REGISTRY ?= docker.io
export DOCKER_REPO ?= siletypesetter/$(TRANSFORMED_PACKAGE_NAME)
export DOCKER_TAG ?= HEAD
Expand All @@ -365,8 +368,8 @@ endef

.PHONY: docker-ghcr-to-hub
docker-ghcr-to-hub:
docker pull ghrc.io/sile-typesetter/sile:$(DOCKER_TAG)
docker tag ghrc.io/sile-typesetter/sile:$(DOCKER_TAG) $(DOCKER_REGISTRY)/$(DOCKER_REPO):$(DOCKER_TAG)
docker pull $(GHCR_REGISTRY)/$(GHCR_REPO):$(DOCKER_TAG)
docker tag $(GHCR_REGISTRY)/$(GHCR_REPO):$(DOCKER_TAG) $(DOCKER_REGISTRY)/$(DOCKER_REPO):$(DOCKER_TAG)
$(docker_push)

.PHONY: docker-build-push
Expand Down

0 comments on commit e5d83d0

Please sign in to comment.