diff --git a/.github/workflows/dev-deploy.yml b/.github/workflows/dev-deploy.yml index 7be2000..5c312ad 100644 --- a/.github/workflows/dev-deploy.yml +++ b/.github/workflows/dev-deploy.yml @@ -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: @@ -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 }} \