Skip to content

Commit fae346c

Browse files
committed
Fix Java sample build issue
There is no arm docker image so only build the Java sample on the linux/amd64 platform Signed-off-by: James Taylor <[email protected]>
1 parent 8fae6c1 commit fae346c

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

.github/workflows/docker-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Docker CI
33
on:
44
workflow_call:
55
inputs:
6+
platforms:
7+
description: 'List of target platforms for Docker build.'
8+
required: true
9+
type: string
610
image-name:
711
description: 'A Docker image name passed from the caller workflow.'
812
required: true
@@ -56,7 +60,7 @@ jobs:
5660
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
5761
with:
5862
context: ${{ inputs.path }}
59-
platforms: linux/amd64,linux/arm64
63+
platforms: ${{ inputs.platforms }}
6064
push: ${{ github.event_name != 'pull_request' }}
6165
tags: ${{ steps.meta.outputs.tags }}
6266
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/go-contract-image.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
id-token: write
2626
uses: ./.github/workflows/docker-build.yml
2727
with:
28+
platforms: linux/amd64,linux/arm64
2829
image-name: ghcr.io/hyperledger-labs/fabric-builder-k8s/sample-go-contract
2930
path: samples/go-contract
3031
chaincode-label: go-contract

.github/workflows/java-contract-image.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
id-token: write
2626
uses: ./.github/workflows/docker-build.yml
2727
with:
28+
platforms: linux/amd64
2829
image-name: ghcr.io/hyperledger-labs/fabric-builder-k8s/sample-java-contract
2930
path: samples/java-contract
3031
chaincode-label: java-contract

.github/workflows/node-contract-image.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
id-token: write
2626
uses: ./.github/workflows/docker-build.yml
2727
with:
28+
platforms: linux/amd64,linux/arm64
2829
image-name: ghcr.io/hyperledger-labs/fabric-builder-k8s/sample-node-contract
2930
path: samples/node-contract
3031
chaincode-label: node-contract

.github/workflows/peer-image.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ jobs:
2929
id-token: write
3030
uses: ./.github/workflows/docker-build.yml
3131
with:
32+
platforms: linux/amd64,linux/arm64
3233
image-name: ghcr.io/hyperledger-labs/fabric-builder-k8s/k8s-fabric-peer
3334
path: .

0 commit comments

Comments
 (0)