Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
Adding labels for metadata extracted.
Adding platform arm64
  • Loading branch information
chargio authored Nov 14, 2024
1 parent 0b88ba7 commit cf0e52f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,20 @@ jobs:
registry: ${{ env.REGISTRY}}
username: ${{ github.actor }}
password: ${{ github.token }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push the Docker image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{ env.IMAGE_NAME }}:${{ github.sha }},ghcr.io/${{ env.IMAGE_NAME }}:latest
file: ./Dockerfile
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit cf0e52f

Please sign in to comment.