-
Notifications
You must be signed in to change notification settings - Fork 8
/
buildkit.yaml
30 lines (30 loc) · 925 Bytes
/
buildkit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
apiVersion: devops.kubesphere.io/v1alpha3
kind: ClusterStepTemplate
metadata:
name: buildkit
labels:
step.devops.kubesphere.io/category: "container"
annotations:
devops.kubesphere.io/displayNameEN: "buildkit"
devops.kubesphere.io/descriptionEN: "buildkit"
spec:
runtime: shell
container: buildkit
parameters:
- name: image
type: string
display: 'Image name'
- name: context
type: string
display: 'Image build context'
defaultValue: '.'
- name: push
type: bool
display: 'Indicate if push the image'
defaultValue: 'false'
- name: registry
type: string
display: 'Image registry address'
defaultValue: 'docker.io'
template: |
buildctl-daemonless.sh build --frontend dockerfile.v0 --local context={{.param.secret.context}} --local dockerfile=. --output type=image,name={{.param.secret.registry}}/{{.param.secret.image}},push={{.param.secret.push}}