Add support for building docker image for linux/arm64 (#494)
authorKrishan <33421343+kfiven@users.noreply.github.com>
Sun, 29 May 2022 04:45:31 +0000 (10:15 +0530)
committerGitHub <noreply@github.com>
Sun, 29 May 2022 04:45:31 +0000 (10:15 +0530)
* Update docker-pr.yml

* setup docker build for linux/arm64

* Update prod-deploy.yml

* Apply PR suggestion

.github/workflows/prod-deploy.yml

index c49035688377f5dfdb29272924d4e65276ebee27..39ef611e648851f15d903824bb5fdfcc4286a183 100644 (file)
@@ -63,6 +63,10 @@ jobs:
     steps:
       - name: Checkout repository
         uses: actions/checkout@v3.0.2
+      - name: Set up QEMU
+        uses: docker/setup-qemu-action@v1.2.0
+      - name: Set up Docker Buildx
+        uses: docker/setup-buildx-action@v1.6.0
       - name: Login to Docker Hub
         uses: docker/login-action@v2.0.0
         with:
@@ -77,6 +81,7 @@ jobs:
         uses: docker/build-push-action@v3.0.0
         with:
           context: .
+          platforms: linux/amd64,linux/arm64
           push: true
           tags: ${{ steps.meta.outputs.tags }}
           labels: ${{ steps.meta.outputs.labels }}