Allow dst and destination for target in secret mounts
Fixes: https://github.com/containers/buildah/issues/3396 Patch from @mixedCase Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
2fb04d5a4e
commit
bb738d4406
|
|
@ -2334,7 +2334,7 @@ func getSecretMount(tokens []string, secrets map[string]string, mountlabel strin
|
||||||
switch kv[0] {
|
switch kv[0] {
|
||||||
case "id":
|
case "id":
|
||||||
id = kv[1]
|
id = kv[1]
|
||||||
case "target":
|
case "target", "dst", "destination":
|
||||||
target = kv[1]
|
target = kv[1]
|
||||||
case "required":
|
case "required":
|
||||||
required, err = strconv.ParseBool(kv[1])
|
required, err = strconv.ParseBool(kv[1])
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
FROM alpine
|
FROM alpine
|
||||||
RUN --mount=type=secret,id=mysecret,target=/mysecret,uid=1000,gid=1001,mode=0444 stat -c "%a" /mysecret ; ls -n /mysecret
|
RUN --mount=type=secret,id=mysecret,dst=/mysecret,uid=1000,gid=1001,mode=0444 stat -c "%a" /mysecret ; ls -n /mysecret
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue