Skip to content

Commit 2102fb1

Browse files
esuneWadeBarnes
authored andcommitted
Enable multi-arch builds for gha publish workflows
Signed-off-by: Emiliano Suñé <emiliano.sune@gmail.com> Signed-off-by: Wade Barnes <wade@neoterictech.ca>
1 parent 275f305 commit 2102fb1

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/publish-indy.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
required: true
1717
type: string
1818

19+
# Note:
20+
# - ACA-Py with Indy SDK image builds do not include support for the linux/arm64 platform.
21+
# - See notes below for details.
22+
1923
env:
2024
INDY_VERSION: ${{ inputs.indy_version || '1.16.0' }}
2125

@@ -29,7 +33,8 @@ jobs:
2933
name: Publish ACA-Py Image (Indy)
3034
runs-on: ubuntu-latest
3135
steps:
32-
- uses: actions/checkout@v3
36+
- name: Checkout Code
37+
uses: actions/checkout@v3
3338

3439
- name: Gather image info
3540
id: info
@@ -78,6 +83,10 @@ jobs:
7883
acapy_version=${{ inputs.tag || github.event.release.tag_name }}
7984
cache-from: type=local,src=/tmp/.buildx-cache
8085
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
86+
# Images do not include support for the linux/arm64 platform due to a known issue compiling the postgres plugin
87+
# - https://github.com/hyperledger/indy-sdk/issues/2445
88+
# There is a pending PR to fix this issue here; https://github.com/hyperledger/indy-sdk/pull/2453
89+
platforms: linux/amd64,linux/386
8190

8291
# Temp fix
8392
# https://github.com/docker/build-push-action/issues/252

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
name: Publish ACA-Py Image
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v3
24+
- name: Checkout Code
25+
uses: actions/checkout@v3
2526

2627
- name: Gather image info
2728
id: info
@@ -69,6 +70,7 @@ jobs:
6970
acapy_version=${{ inputs.tag || github.event.release.tag_name }}
7071
cache-from: type=local,src=/tmp/.buildx-cache
7172
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
73+
platforms: linux/amd64,linux/arm64,linux/386
7274

7375
# Temp fix
7476
# https://github.com/docker/build-push-action/issues/252

0 commit comments

Comments
 (0)