/
step.yml
141 lines (117 loc) · 4.49 KB
/
step.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
title: |-
Docker Build & Push
summary: |
Building and pushing docker images with built-in cache support
description: |
Enables you to build and optionally push docker images with built-in Bitrise key-value cache support.
It is possible to customize the docker build command to utilize other cache mechanisms, such as registry-cache.
website: https://github.com/bitrise-steplib/bitrise-step-docker-build-push
source_code_url: https://github.com/bitrise-steplib/bitrise-step-docker-build-push
support_url: https://github.com/bitrise-steplib/bitrise-step-docker-build-push/issues
type_tags:
- build
toolkit:
go:
package_name: github.com/bitrise-steplib/bitrise-step-docker-build-push
inputs:
- tags:
opts:
title: Image tags
summary: List of tags (full image names) to be applied to the built image
description: |-
List of tags (full image names) to be applied to the built image
Add one tag per line. Example: `myregistry.com/myimage:latest`
is_required: true
- context: .
opts:
title: Build context path
summary: Path to the build context to be used for the docker build
description: |-
Path to the build context to be used for the docker build
The path is relative to the working directory.
is_required: true
- file: ./Dockerfile
opts:
title: Dockerfile path
summary: Path to the Dockerfile to be built
description: |-
Path to the Dockerfile to be built
The path is relative to the working directory.
is_required: true
- push: "false"
opts:
title: Push docker image
summary: When set to 'true', the docker image will be pushed
description: |-
When set to 'true', the docker image will be pushed.
value_options:
- "true"
- "false"
is_required: true
- use_bitrise_cache: "false"
opts:
title: Use Bitrise key-value cache
summary: When set to 'true', image will be cached automatically with Bitrise key-value cache
description: |-
When set to 'true', the docker image will automatically be cached using Bitrise key-value cache.
The following cache keys will be used:
- docker-imagename-{{ .OS }}-{{ .Arch }}-{{ .Branch }}-{{ .CommitHash }}
- docker-imagename-{{ .OS }}-{{ .Arch }}-{{ .Branch }}
- docker-imagename-{{ .OS }}-{{ .Arch }}
Warning: Do not specify the cache-to and cache-from parameters when using this option.
value_options:
- "true"
- "false"
is_required: true
- build_arg:
opts:
title: Build arguments
summary: List of [build arguments](https://docs.docker.com/build/guide/build-args/) to be passed to the docker build
description: |-
List of build arguments to be passed to the docker build
Add one build argument per line. Example: `MY_BUILD_ARG=myvalue`
is_required: false
- cache_from:
opts:
title: Cache from arguments
summary: List of arguments to be passed to the docker build for cache-from
description: |-
List of arguments to be passed to the docker build for cache-from
Add one cache-from argument per line. Example: `type=registry,ref=myregistry.dev/myrepository/my-image:latest`
is_required: false
- cache_to:
opts:
title: Cache to arguments
summary: List of arguments to be passed to the docker build for cache-to
description: |-
List of arguments to be passed to the docker build for cache-to
Add one cache-to argument per line. Example: `type=registry,ref=myregistry.dev/myrepository/my-image:latest,mode=max,compression=zstd`
is_required: false
- extra_options:
opts:
title: Extra options
summary: List of extra options to be passed to the docker build
description: |-
List of extra options to be passed to the docker build
Extra options must be in the format of `--option value` or `--option=value`.
Warning:
When using values with quotes in them (for example when they contain spaces) do not use the equal sign.
Separate it with spaces instead. Example: `--option "value with spaces"`
Add one extra option per line.
is_required: false
- buildx_host_network: "false"
opts:
title: Enables to use the host network with the buildkit build container
summary: Enables to use the host network with the buildkit build container
is_required: true
value_options:
- "true"
- "false"
- verbose: "false"
opts:
title: Verbose logging
summary: Enable logging additional information for troubleshooting
is_required: true
value_options:
- "true"
- "false"