Skip to content

Commit 49a0e82

Browse files
author
saville
committed
Fix docs on other file
1 parent 155118a commit 49a0e82

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

examples/build/secrets/buildrunner.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# In order to use secrets, you need to set use-legacy-builder to false in the config file
2-
# To run this example, you need to set the SECRET_PASSWORD environment variable
3-
# and run the example with the following command:
2+
# To run this example, use the following command:
43
# SECRET2=my_secret ./run-buildrunner.sh -f examples/build/secrets/buildrunner.yaml
54
# More info about secrets: https://docs.docker.com/build/building/secrets/
65
use-legacy-builder: false

examples/build/secrets/platforms-buildrunner.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ steps:
1111
# Using secrets inline
1212
RUN --mount=type=secret,id=secret1 \
1313
--mount=type=secret,id=secret2 \
14-
echo "Using secrets in my build - secret1 file located at /run/secrets/secret1 with contents $(cat /run/secrets/secret1) and secret2=$(cat /run/secrets/secret2)"
14+
echo Using secrets in my build - secret1 file located at /run/secrets/secret1 with contents $(cat /run/secrets/secret1) and secret2=$(cat /run/secrets/secret2)
1515
# Using secrets in environment variables
1616
RUN --mount=type=secret,id=secret1 \
1717
--mount=type=secret,id=secret2 \
1818
SECRET1_FILE=/run/secrets/secret1 \
1919
SECRET2_VARIABLE=$(cat /run/secrets/secret2) \
20-
&& echo "Using secrets in my build - secret1 file located at $SECRET1_FILE with contents $(cat $SECRET1_FILE) and secret2=$SECRET2_VARIABLE"
20+
&& echo Using secrets in my build - secret1 file located at $SECRET1_FILE with contents $(cat $SECRET1_FILE) and secret2=$SECRET2_VARIABLE
2121
secrets:
2222
# Example of a secret that is a file
2323
- id=secret1,src=examples/build/secrets/secret1.txt

0 commit comments

Comments
 (0)