apify / workflows

Apify's reusable github workflows
7 stars 4 forks source link

feat: add secrets env vars to build workflow #68

Closed dragonraid closed 1 year ago

dragonraid commented 1 year ago

This PR adds support for passing secret file https://docs.docker.com/engine/reference/commandline/buildx_build/#secret.

This file contains comma-delimited secret KEY=VALUE pair, that can be source in Dockerfile like this:

RUN --mount=type=secret,id=SECRET_ENV_VARS,target=/run/secrets/SECRET_ENV_VARS \
    . /run/secrets/SECRET_ENV_VARS && <my_command_using_secret(s)>