Skip to content

Commit 044d245

Browse files
committed
s
1 parent 2bdc005 commit 044d245

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

examples/build/secrets/platforms-buildrunner.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ steps:
1515
# 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)
1616
RUN --mount=type=secret,id=secret1 \
1717
--mount=type=secret,id=secret2 \
18-
sh -c ' \
19-
SECRET1_FILE=/run/secrets/secret1; \
20-
SECRET2_VARIABLE=$(cat /run/secrets/secret2); \
21-
echo "Using secrets in my build - secret1 file located at $SECRET1_FILE with contents $(cat $SECRET1_FILE) and secret2=$SECRET2_VARIABLE" \
22-
'
18+
SECRET1_FILE=/run/secrets/secret1 \
19+
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"
2321
secrets:
2422
# Example of a secret that is a file
2523
- id=secret1,src=examples/build/secrets/secret1.txt

0 commit comments

Comments
 (0)