Skip to content

Commit 392f17a

Browse files
committed
Allow overriding platforms to build for
1 parent efb0f5b commit 392f17a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/cluster-docker-build-tag-push.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ on:
4545
type: string
4646
description: "Docker image repository name in GAR: amp = images hosted in cluster; dev = dev env and test images"
4747
default: amp
48+
image_platforms
49+
type: string
50+
description: "Platform to build the image for, comma separated list. Example: linux/amd64,linux/arm64"
51+
default: linux/amd64
4852
workload_identity_provider:
4953
type: string
5054
description: "Workload identity federation provider"
@@ -168,3 +172,4 @@ jobs:
168172
tags: ${{ steps.meta.outputs.tags }}
169173
cache-from: type=gha,scope=${{ inputs.image }}
170174
cache-to: type=gha,mode=max,scope=${{ inputs.image }}
175+
platforms: ${{ inputs.image_platforms }}

0 commit comments

Comments
 (0)