Skip to content

Commit 06253a2

Browse files
Add buildx and platform properties to build step (#558)
* Add buildx and platform properties to build step
1 parent 68337a0 commit 06253a2

File tree

1 file changed

+54
-2
lines changed

1 file changed

+54
-2
lines changed

graduated/build/step.yaml

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
sources:
99
- 'https://github.com/codefresh-io/steps/tree/master/graduated/build'
1010
stage: graduated
11-
version: 1.1.3
11+
version: 1.2.0
1212
categories:
1313
- featured
1414
- docker
@@ -143,6 +143,58 @@ spec:
143143
"provider": {
144144
"type": "object",
145145
"additionalProperties": true
146-
}
146+
},
147+
"platform": {
148+
"type": "string",
149+
"description": "Set target platform/s (comma separated list) for build."
150+
},
151+
"buildx": {
152+
"oneOf": [
153+
{
154+
"type": "boolean"
155+
},
156+
{
157+
"type": "object",
158+
"properties": {
159+
"qemu": {
160+
"type": "object",
161+
"properties": {
162+
"image": {
163+
"type": "string",
164+
"description": "QEMU static binaries Docker image.",
165+
"default": "tonistiigi/binfmt:latest"
166+
},
167+
"platforms": {
168+
"type": "string",
169+
"description": "Platforms to install (e.g. arm64,riscv64,arm).",
170+
"default": "all"
171+
}
172+
},
173+
"description": "Configure which QEMU static binaries will be installed.",
174+
"additionalProperties": false
175+
},
176+
"builder": {
177+
"type": "object",
178+
"properties": {
179+
"driver": {
180+
"type": "string",
181+
"description": "Sets the builder driver to be used.",
182+
"default": "docker-container"
183+
},
184+
"driver_opts": {
185+
"type": "string",
186+
"description": "List of additional driver-specific options (e.g. image=moby/buildkit:master)."
187+
}
188+
},
189+
"description": "Configure the builder instance that will be created and used to build the image.",
190+
"additionalProperties": false
191+
}
192+
},
193+
"additionalProperties": false
194+
}
195+
],
196+
"description": "Build and push Docker images with Buildx including multi-platform builds (set to `true` to enable with default configuration, or set to an object with custom configuration).",
197+
"default": false
198+
},
147199
}
148200
}

0 commit comments

Comments
 (0)