Skip to content

Commit

Permalink
ci: Add ARMv7 auto-build support in GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
vvbbnn00 committed Mar 15, 2024
1 parent a9e410b commit b4fa7e6
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
tags: |
type=sha,format=short
- name: Build and push
- name: Build and push (Dockerfile)
uses: docker/build-push-action@v5
with:
context: .
Expand All @@ -43,5 +43,18 @@ jobs:
build-args: GITHUB_ACTIONS=true
platforms: linux/amd64,linux/arm64

- name: Build and push (Dockerfile.armhf)
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.armhf
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: GITHUB_ACTIONS=true
platforms: linux/arm/v7

- name: Image digest
run: echo ${{ steps.meta.outputs.digest }}

0 comments on commit b4fa7e6

Please sign in to comment.