Skip to content

Commit

Permalink
Update docker-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
isaric committed Dec 24, 2023
1 parent c8e774e commit a9db5f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}

IMAGE_NAME_ARM64: ${{ github.repository }}:${{ github.ref_name }}-arm64

IMAGE_NAME_AMD64: ${{ github.repository }}:${{ github.ref_name }}-amd64
Expand Down Expand Up @@ -84,7 +86,7 @@ jobs:
context: .
file: dockerfile-arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta-arm64.outputs.tags }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_ARM64 }}
labels: ${{ steps.meta-arm64.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
Expand All @@ -97,7 +99,7 @@ jobs:
context: .
file: dockerfile-amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta-amd64.outputs.tags }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_AMD64 }}
labels: ${{ steps.meta-amd64.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
Expand Down

0 comments on commit a9db5f7

Please sign in to comment.