Skip to content

Commit

Permalink
Force ARM Platform Docker Build for Graviton2 Compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
h2ouw8n4 committed Nov 6, 2023
1 parent 7852ae1 commit 9c79ea6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-docker-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
- name: Login to AWS ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Set up for ARM Build
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Build Docker Image
run: docker buildx build --platform linux/arm64/v8 -t ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/wp:latest ./docker
- name: Push Docker Image
Expand Down

0 comments on commit 9c79ea6

Please sign in to comment.