Skip to content

Commit

Permalink
modify action to build on ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
dreth committed Oct 9, 2024
1 parent a53e819 commit a27feb3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up QEMU for multi-platform builds
uses: docker/setup-qemu-action@v2

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

- id: install-aws-cli
uses: unfor19/install-aws-cli-action@v1
with:
version: 2
verbose: true
arch: amd64
arch: arm64

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
Expand All @@ -30,7 +36,7 @@ jobs:

- name: Build Docker image
run: |
docker build --platform linux/arm64 -t hbd -f prod.Dockerfile .
docker buildx build --platform linux/arm64 -t hbd:latest -f prod.Dockerfile --load .
docker tag hbd:latest hbd:latest
- name: Push Docker image to ECR
Expand Down

0 comments on commit a27feb3

Please sign in to comment.