Skip to content

Commit

Permalink
add arm platform in github workflow image build
Browse files Browse the repository at this point in the history
  • Loading branch information
nitwhiz committed May 18, 2022
1 parent 6e7163c commit 3868eb0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- name: Set up docker buildx
uses: docker/setup-buildx-action@v1

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Login to GitHub Packages
uses: docker/login-action@v1
with:
Expand All @@ -33,6 +36,7 @@ jobs:
if: ${{ github.ref_type == 'tag' }}
with:
context: ./
platforms: linux/amd64,linux/arm/v7
tags: "ghcr.io/${{ github.repository }}:${{ github.ref_name }}"
push: true

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

0 comments on commit 3868eb0

Please sign in to comment.