Skip to content

Commit

Permalink
fix: add QEMU to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ZZ3n committed Sep 19, 2024
1 parent 47334d6 commit 51b7b62
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

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

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

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand All @@ -75,10 +81,10 @@ jobs:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
IMAGE_TAG: ${{ github.sha }}
run: |
# Build a docker container and
# push it to ECR so that it can
# be deployed to ECS.
docker build \
# Build a docker container and push it to ECR so that it can be deployed to ECS.
# Create a new buildx builder instance for cross-platform builds
docker buildx create --use
docker buildx build \
--platform=linux/arm64 \
-t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \
--build-arg NEXT_PUBLIC_API_URL=${{ vars.NEXT_PUBLIC_API_URL_PROD }} \
Expand Down

0 comments on commit 51b7b62

Please sign in to comment.