Skip to content

Commit 94003f8

Browse files
feat: variabilize docker build platforms
1 parent e9b92bc commit 94003f8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/docker-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ on:
3939
description: "Enable Hadolint"
4040
default: true
4141
type: boolean
42+
platforms:
43+
description: "Build platforms"
44+
default: "linux/amd64,linux/arm64"
45+
type: string
4246
secrets:
4347
username:
4448
required: false
@@ -71,7 +75,7 @@ jobs:
7175
with:
7276
context: ${{ inputs.context }}
7377
file: ${{ inputs.dockerfile }}
74-
platforms: linux/amd64,linux/arm64
78+
platforms: ${{ inputs.platforms }}
7579
push: ${{ inputs.push }}
7680
tags: ${{ inputs.image-name }}:${{ inputs.image-tag }}
7781

0 commit comments

Comments
 (0)