Skip to content

Commit

Permalink
fix: Fix package name and move username out of makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Frixxie committed Sep 22, 2024
1 parent 24bdbd0 commit 24f3d22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_USER: Frixxie

jobs:
build:
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PROJECT_NAME=prestgaarsbasen
PROJECT_NAME=items

all: test

Expand All @@ -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

0 comments on commit 24f3d22

Please sign in to comment.