This content supports the hands on lab for the Vault GitHub Actions tutorial.
Create a Docker image for the application and label it
vault-action-exampleapp.
docker build . --file Dockerfile -t vault-action-exampleappView the contents of the app_secret file in the Docker image.
docker run vault-action-exampleapp /bin/bash -c "cat ./app_secret"Create a Docker image for the application, label it
vault-action-exampleapp, and override the secret.
docker build . \
--file Dockerfile \
--build-arg app_secret="SECRET_OVERRIDE" \
-t vault-action-exampleapp