secrets:
  test-secret:
    file: test-secret.txt

services:
  secret-build-test:
    profiles: ["test"]
    build:
      context: .
      dockerfile: Dockerfile
      secrets:
        - test-secret