Skip to content

Commit

Permalink
feat: build Docker images for linux ARM64 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanhonof committed Dec 18, 2023
1 parent ac7257c commit 358935d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push app
uses: docker/build-push-action@v5
with:
context: ./${{ matrix.context }}
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/iot-api-server-${{ matrix.context }}:latest
context: ./${{ matrix.context }}
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/iot-api-server-${{ matrix.context }}:latest

0 comments on commit 358935d

Please sign in to comment.