Skip to content

Commit

Permalink
Fix for the docker hub image labels
Browse files Browse the repository at this point in the history
  • Loading branch information
cihanandac committed Jan 26, 2024
1 parent 708219d commit b353215
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
${{ env.IMAGE_NAME_PREFIX }}-${{ env.IMAGE_NAME_SUFFIX }}
intkbv/markiezenhof-backend
labels: |
org.label-schema.docker.cmd=docker run -d -p 8080:8080 ${{ env.IMAGE_NAME_PREFIX }}-${{ env.IMAGE_NAME_SUFFIX }}:latest
org.label-schema.docker.cmd=docker run -d -p 8080:8080 intkbv/markiezenhof-backend:latest
flavor: latest=false
tags: |
type=ref,event=branch
Expand All @@ -138,13 +138,13 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v3
with:
platforms: linux/amd64
context: backend
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
${{ env.IMAGE_NAME_PREFIX }}-${{ env.IMAGE_NAME_SUFFIX }}
intkbv/markiezenhof-frontend
labels: |
org.label-schema.docker.cmd=docker run -d -p 3000:3000 ${{ env.IMAGE_NAME_PREFIX }}-${{ env.IMAGE_NAME_SUFFIX }}:latest
org.label-schema.docker.cmd=docker run -d -p 3000:3000 intkbv/markiezenhof-frontend:latest
flavor: latest=false
tags: |
type=ref,event=branch
Expand Down

0 comments on commit b353215

Please sign in to comment.