services:
ssh:
image: build-test-secret
build:
context: .
secrets:
- mysecret
- source: envsecret
target: build_secret
mysecret:
file: ./secret.txt
envsecret:
environment: SOME_SECRET