Skip to content

Commit

Permalink
feat: add linux/arm64 platform as build target (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwwinter authored Jun 5, 2024
1 parent 35f39e5 commit 5e29182
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ jobs:
working-directory: application/aam-backend-service
run: ./gradlew installDist

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

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand All @@ -39,7 +45,7 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v5
with:
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
context: ./application/aam-backend-service
push: true
tags: ghcr.io/aam-digital/aam-backend-service:pr-${{ github.event.number }}
8 changes: 7 additions & 1 deletion .github/workflows/aam-backend-service-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ jobs:
working-directory: application/aam-backend-service
run: ./gradlew installDist

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

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand All @@ -41,7 +47,7 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v5
with:
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
context: ./application/aam-backend-service
push: true
tags: ghcr.io/aam-digital/aam-backend-service:${{ env.TAG_VERSION }},ghcr.io/aam-digital/aam-backend-service:latest

0 comments on commit 5e29182

Please sign in to comment.