Skip to content

Commit 7766e9c

Browse files
committed
use qemu for arm64 build
1 parent 79f5a91 commit 7766e9c

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

.github/workflows/authorization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
image_name: authorization_jvm_aarch64
3636
image_file: authorization_jvm_aarch64.yaml
3737
image_platform: linux/arm64
38+
use_qemu: true
3839
push-multi-arch-image-jvm:
3940
needs:
4041
- build-oci-image-jvm-amd64

.github/workflows/build-oci-image-jvm.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ on:
2222
required: false
2323
type: string
2424
default: linux/amd64
25+
use_qemu:
26+
required: false
27+
type: boolean
28+
default: false
2529
jobs:
2630
build:
2731
runs-on: ubuntu-latest
@@ -40,6 +44,11 @@ jobs:
4044
CURRENT_VERSION=$(./mvnw -f ${{ inputs.pom_dir }} help:evaluate -Dexpression=project.version -q -DforceStdout)
4145
NEW_VERSION=$(echo $CURRENT_VERSION | sed "s/-SNAPSHOT/.${GITHUB_SHA}/")
4246
./mvnw -f ${{ inputs.pom_dir }} versions:set -DnewVersion=${NEW_VERSION} -DgenerateBackupPoms=false --no-transfer-progress
47+
- name: Set up QEMU
48+
if: inputs.use_qemu
49+
uses: docker/setup-qemu-action@v3
50+
with:
51+
platforms: ${{ inputs.image_platform }}
4352
- name: build image (Paketo Buildpack)
4453
run: |
4554
OS_ARCH=$(./mvnw -f ${{ inputs.pom_dir }} help:evaluate -Dexpression=os.arch -q -DforceStdout)

.github/workflows/todo-api.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
image_name: todo-api_jvm_aarch64
3636
image_file: todo-api_jvm_aarch64.yaml
3737
image_platform: linux/arm64
38+
use_qemu: true
3839
push-multi-arch-image-jvm:
3940
needs:
4041
- build-oci-image-jvm-amd64

.github/workflows/todo-frontend.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
image_name: todo-frontend_jvm_aarch64
3838
image_file: todo-frontend_jvm_aarch64.yaml
3939
image_platform: linux/arm64
40+
use_qemu: true
4041
push-multi-arch-image-jvm:
4142
needs:
4243
- build-oci-image-jvm-amd64

0 commit comments

Comments
 (0)