You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/plugins/resource/dockerfile.adoc
+30-2Lines changed: 30 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,7 +214,7 @@ Matches https://docs.docker.com/engine/reference/builder/#arg[Dockerfile ARG, wi
214
214
215
215
* When used as a target, *only* the value of the argument (right of the `=` when present)
216
216
** When no argument value is found (e.g. default value, no character `=` or empty value),
217
-
then updatecli appends the `=` character followed by the value.
217
+
then updatecli appends the `=` character followed by the value. It is possible to disable this behaviour by providing `ignoreUnsetValue: true` in the configuration.
Using `ignoreUnsetValue: true`, with the following definition:
247
+
248
+
[source, yaml]
249
+
----
250
+
spec:
251
+
file: Dockerfile
252
+
instruction:
253
+
keyword: "ARG"
254
+
matcher: "UPDATECLI_VERSION"
255
+
ignoreUnsetValue: true
256
+
----
257
+
258
+
you get the following results:
259
+
260
+
[source, Dockerfile]
261
+
----
262
+
# Matches
263
+
ARG UPDATECLI_VERSION=0.1.0
264
+
arg UPDATECLI_VERSION=0.1.0
265
+
266
+
## Does NOT matches
267
+
ARG UPDATECLI_VERSION
268
+
ARG UPDATECLI_VERSION=
269
+
ARG GOLANG_VERSION
270
+
ARG RUST_VERSION=UPDATECLI_VERSION
271
+
ARG updatecli_version
272
+
----
273
+
246
274
==== ENV
247
275
248
276
Matches https://docs.docker.com/engine/reference/builder/#env[Dockerfile ENV, window="_blank"] instruction by keys to manipulate their values.
@@ -257,7 +285,7 @@ Matches https://docs.docker.com/engine/reference/builder/#env[Dockerfile ENV, wi
257
285
258
286
* When used as a target, *only* the value of the environment (right of the `=` when present)
259
287
** When no environment value is found (e.g. default value, no character `=` or empty value),
260
-
then updatecli appends the `=` character followed by the value.
288
+
then updatecli appends the `=` character followed by the value. It is possible to disable this behaviour by providing `ignoreUnsetValue: true` in the configuration.
0 commit comments