Skip to content

Commit

Permalink
Fix container image's registry name (#5)
Browse files Browse the repository at this point in the history
Signed-off-by: Aitor Iturrioz <aiturrioz@tknika.eus>
  • Loading branch information
bodiroga authored Feb 26, 2024
1 parent 25a1e97 commit 0bfb0d5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand All @@ -34,9 +33,7 @@ jobs:
id: image_metadata # you'll use this in the next step
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
iombian-button-handler
images: ghcr.io/${{ github.repository }}
# Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}}
Expand All @@ -45,7 +42,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
push: True
push: true
platforms: linux/amd64,linux/arm/v7
tags: ${{ steps.image_metadata.outputs.tags }}
labels: ${{ steps.image_metadata.outputs.labels }}

0 comments on commit 0bfb0d5

Please sign in to comment.