Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build multi-architecture to support apple silicon (arm64) #160

Merged
merged 5 commits into from
Jul 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/release-app-state-diagram.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,27 @@ jobs:
PACKAGE_NAME: app-state-diagram
VERSION_NAME: latest
steps:
- name: Check out the repo
- name: Checkout
uses: actions/checkout@v2

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

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.CR_PAT }}

- name: Push to GitHub Container Registry
- name: Build & Push Docker image
uses: docker/build-push-action@v2
with:
push: true
tags: ghcr.io/${{ github.repository_owner }}/${{ env.PACKAGE_NAME }}:${{ env.VERSION_NAME }}
file: docker/app-state-diagram/Dockerfile
context: docker/app-state-diagram
env:
DOCKER_BUILDKIT: 1
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/alps-asd/app-state-diagram:latest
2 changes: 1 addition & 1 deletion docker/app-state-diagram/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

cd "$(dirname "$0")"/.. || exit

docker build -t ghcr.io/alps-asd/app-state-diagram:latest -f app-state-diagram/Dockerfile app-state-diagram
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/alps-asd/app-state-diagram:latest -f app-state-diagram/Dockerfile app-state-diagram
# docker scan app-state-diagram:latest
2 changes: 1 addition & 1 deletion docker/asd-action/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

cd "$(dirname "$0")"/.. || exit

docker build -t ghcr.io/alps-asd/asd-action:latest -f asd-action/Dockerfile asd-action
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/alps-asd/asd-action:latest -f asd-action/Dockerfile asd-action
# docker scan asd-action:latest
Loading