diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 0a8df23..8f60a58 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -9,6 +9,7 @@ on: env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GITHUB_USER: Frixxie jobs: build: diff --git a/Makefile b/Makefile index de08e18..b1473cc 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -PROJECT_NAME=prestgaarsbasen +PROJECT_NAME=items all: test @@ -22,10 +22,10 @@ docker_builder: docker buildx create --name builder --platform linux/amd64,linux/arm64 docker_login: - docker login ghcr.io -u Frixxie -p $(GITHUB_TOKEN) + docker login ghcr.io -u $(GITHUB_USER) -p $(GITHUB_TOKEN) container: docker_builder docker_login - cd backend && docker buildx build -t ghcr.io/frixxie/$(PROJECT_NAME):latest . --platform linux/amd64,linux/arm64 --builder builder --push + cd backend && docker buildx build -t ghcr.io/$(GITHUB_USER)/$(PROJECT_NAME):latest . --platform linux/amd64,linux/arm64 --builder builder --push container_tagged: docker_builder docker_login - cd backend && docker buildx build -t ghcr.io/frixxie/$(PROJECT_NAME):$(DOCKERTAG) . --platform linux/amd64,linux/arm64 --builder builder --push + cd backend && docker buildx build -t ghcr.io/$(GITHUB_USER)/$(PROJECT_NAME):$(DOCKERTAG) . --platform linux/amd64,linux/arm64 --builder builder --push