build-push-action/test/secret.Dockerfile
2023-09-13 21:37:08 +08:00

5 lines
127 B
Docker
Executable File

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