3
0
Fork 0
mirror of https://gitea.com/docker/build-push-action.git synced 2024-11-27 11:59:37 +01:00
docker-build-push/test/secret.Dockerfile

5 lines
127 B
Text
Raw Normal View History

# syntax=docker/dockerfile:1
FROM busybox
RUN --mount=type=secret,id=MYSECRET \
echo "MYSECRET=$(cat /run/secrets/MYSECRET)"