docker-build-push/test/secret.Dockerfile

5 lines
127 B
Plaintext
Raw Normal View History

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