Skip to content

Commit

Permalink
add arm64 in workflow image build
Browse files Browse the repository at this point in the history
  • Loading branch information
nitwhiz committed Jul 20, 2022
1 parent 7adbced commit 3b540f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_PAT }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build image and push to GitHub Container Registry as specific tag
uses: docker/build-push-action@v2
if: ${{ github.ref_type == 'tag' }}
with:
context: ./
platforms: linux/amd64,linux/arm/v7
platforms: linux/amd64,linux/arm/v7,linux/arm64
tags: "ghcr.io/${{ github.repository }}:${{ github.ref_name }}"
push: true

Expand All @@ -45,6 +45,6 @@ jobs:
if: ${{ github.ref_type != 'tag' }}
with:
context: ./
platforms: linux/amd64,linux/arm/v7
platforms: linux/amd64,linux/arm/v7,linux/arm64
tags: "ghcr.io/${{ github.repository }}:latest"
push: ${{ github.ref == 'refs/heads/main' }}

0 comments on commit 3b540f7

Please sign in to comment.