Skip to content

Commit aec9054

Browse files
authored
add platforms input for docker-publish (#17)
1 parent 9c840fb commit aec9054

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ on:
3030
required: false
3131
default: './Dockerfile'
3232
type: string
33+
platforms:
34+
# https://docs.docker.com/build/building/multi-platform/
35+
# https://docs.docker.com/reference/cli/docker/buildx/build/#platform
36+
description: 'Multi-platform builds'
37+
required: false
38+
default: linux/amd64,linux/arm64
39+
type: string
3340

3441
jobs:
3542
build:
@@ -80,7 +87,7 @@ jobs:
8087
context: ${{ inputs.context }}
8188
# https://docs.docker.com/build/concepts/dockerfile/#filename
8289
file: ${{ inputs.file }}
83-
platforms: linux/amd64,linux/arm64
90+
platforms: ${{ inputs.platforms }}
8491
push: ${{ inputs.push }}
8592
tags: ${{ steps.meta.outputs.tags }}
8693
# https://docs.docker.com/build/metadata/annotations/

0 commit comments

Comments
 (0)