Skip to content

Commit

Permalink
ci: build image for arm64 arch in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
KuthumiPepple committed Sep 8, 2024
1 parent 10f9ed8 commit 888e045
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ jobs:
role-to-assume: arn:aws:iam::767398076546:role/deployment
aws-region: us-east-1

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

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

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
Expand All @@ -38,6 +44,9 @@ jobs:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
REPOSITORY: bank
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG .
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/arm64
push: true
tags: $REGISTRY/$REPOSITORY:$IMAGE_TAG

0 comments on commit 888e045

Please sign in to comment.