Skip to content

Commit

Permalink
add build from linux/arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
LeKovr committed Nov 15, 2021
1 parent 43190a0 commit 59448eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
platforms: linux/amd64, linux/arm/v7
platforms: linux/amd64, linux/arm/v7, linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ ADD armv7/alpine-minirootfs-3.14.3-armv7.tar.gz /
FROM scratch AS arch-amd64
ADD x86_64/alpine-minirootfs-3.14.3-x86_64.tar.gz /

FROM scratch AS arch-arm64
ADD aarch64/alpine-minirootfs-3.14.3-aarch64.tar.gz /

FROM arch-${TARGETARCH} AS final
ARG TARGETARCH
RUN echo "I am running for $TARGETARCH"
Expand Down

0 comments on commit 59448eb

Please sign in to comment.