Skip to content

Commit

Permalink
Action fixup (#1)
Browse files Browse the repository at this point in the history
* Update build-publish-docker.yml

* Update build-publish-docker.yml
  • Loading branch information
slikie committed Apr 10, 2024
1 parent 7350155 commit 37c1e23
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/build-publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
image:
- platform: linux/amd64
dockerfile: Dockerfile
tag-main: latest
tag-alt: ${{ github.sha }}
- platform: linux/arm64
dockerfile: Dockerfile.arm64
tag-main: latest-arm64
tag-alt: ${{ github.sha }}-arm64
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -53,8 +64,12 @@ jobs:
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
platforms: ${{ matrix.image.platform }}
file: ${{ matrix.image.dockerfile }}
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
ghcr.io/${{ env.IMAGE_NAME }}:${{ matrix.image.tag-main }}
ghcr.io/${{ env.IMAGE_NAME }}:${{ matrix.image.tag-alt }}

0 comments on commit 37c1e23

Please sign in to comment.