Skip to content

Commit ba26b45

Browse files
loneilesune
andauthored
For PRs, skip the QEMU-emulated arm64 leg (#2073)
the QEMU-emulated arm64 leg on PR builds Signed-off-by: Lucas ONeil <lucasoneil@gmail.com> Co-authored-by: Emiliano Suñé <2395873+esune@users.noreply.github.com>
1 parent 7234682 commit ba26b45

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

.github/actions/build_acapy/action.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ inputs:
2626
type: string
2727
registry_password:
2828
required: true
29+
platforms:
30+
description: 'Comma-separated target platforms for the image build'
31+
required: false
32+
type: string
33+
default: 'linux/amd64,linux/arm64'
2934

3035
outputs:
3136
image_tag:
@@ -76,7 +81,7 @@ runs:
7681
context: ${{ inputs.context }}
7782
file: ${{ inputs.dockerfile }}
7883
push: true
79-
platforms: linux/amd64,linux/arm64
84+
platforms: ${{ inputs.platforms }}
8085
tags: ${{ steps.meta.outputs.tags }}
8186
labels: ${{ steps.meta.outputs.labels }}
8287
annotations: ${{ steps.meta.outputs.annotations }}

.github/actions/build_ui/action.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ inputs:
2121
type: string
2222
registry_password:
2323
required: true
24+
platforms:
25+
description: "Comma-separated target platforms for the image build"
26+
required: false
27+
type: string
28+
default: "linux/amd64,linux/arm64"
2429

2530
outputs:
2631
image_tag:
@@ -113,7 +118,7 @@ runs:
113118
with:
114119
context: ${{ inputs.context }}
115120
push: true
116-
platforms: linux/amd64,linux/arm64
121+
platforms: ${{ inputs.platforms }}
117122
tags: ${{ steps.meta.outputs.tags }}
118123
labels: ${{ steps.meta.outputs.labels }}
119124
annotations: ${{ steps.meta.outputs.annotations }}

.github/workflows/on_pr_opened.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
registry: ghcr.io
4949
registry_username: ${{ github.repository_owner}}
5050
registry_password: ${{ secrets.GITHUB_TOKEN }}
51+
# PR images only ever deploy to OpenShift (amd64); skip the slow QEMU-emulated arm64 build
52+
platforms: linux/amd64
5153
outputs:
5254
image_tag: ${{ steps.builder.outputs.image_tag }}
5355
image_version: ${{ steps.builder.outputs.image_version }}
@@ -71,6 +73,7 @@ jobs:
7173
registry: ghcr.io
7274
registry_username: ${{ github.repository_owner}}
7375
registry_password: ${{ secrets.GITHUB_TOKEN }}
76+
platforms: linux/amd64
7477
outputs:
7578
image_tag: ${{ steps.builder.outputs.image_tag }}
7679

@@ -92,6 +95,7 @@ jobs:
9295
registry: ghcr.io
9396
registry_username: ${{ github.repository_owner}}
9497
registry_password: ${{ secrets.GITHUB_TOKEN }}
98+
platforms: linux/amd64
9599
outputs:
96100
image_tag: ${{ steps.builder.outputs.image_tag }}
97101

0 commit comments

Comments
 (0)