File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -871,8 +871,8 @@ This lets you [mount the secret][run_mount_secret] in your Dockerfile.
871871``` dockerfile
872872RUN --mount=type=secret,id=aws,target=/root/.aws/credentials \
873873 aws cloudfront create-invalidation ...
874- RUN --mount=type=secret,id=KUBECONFIG \
875- KUBECONFIG=$(cat /run/secrets/KUBECONFIG) helm upgrade --install
874+ RUN --mount=type=secret,id=KUBECONFIG,env=KUBECONFIG \
875+ helm upgrade --install
876876```
877877
878878### ` target.shm-size `
Original file line number Diff line number Diff line change @@ -947,8 +947,8 @@ Attribute keys:
947947# syntax=docker/dockerfile:1
948948FROM node:alpine
949949RUN --mount=type=bind,target=. \
950- --mount=type=secret,id=SECRET_TOKEN \
951- SECRET_TOKEN=$(cat /run/secrets/SECRET_TOKEN) yarn run test
950+ --mount=type=secret,id=SECRET_TOKEN,env=SECRET_TOKEN \
951+ yarn run test
952952```
953953
954954``` console
You can’t perform that action at this time.
0 commit comments