mirror of
https://github.com/containers/podman-compose.git
synced 2025-01-10 07:58:50 +01:00
1e9cf1dff0
to make them available for "RUN --mount=type=secret" statements inside the Dockerfile. Keep using --volume to pass file secrets to "podman run". Signed-off-by: wiehe <28457227+wiehe@users.noreply.github.com>
19 lines
440 B
Plaintext
19 lines
440 B
Plaintext
version: "3.8"
|
|
|
|
services:
|
|
test:
|
|
image: test
|
|
build:
|
|
context: .
|
|
secrets:
|
|
# invalid target argument
|
|
#
|
|
# According to https://github.com/compose-spec/compose-spec/blob/master/build.md, target is
|
|
# supposed to be the "name of a *file* to be mounted in /run/secrets/". Not a path.
|
|
- source: build_secret
|
|
target: /build_secret
|
|
|
|
secrets:
|
|
build_secret:
|
|
file: ./my_secret
|