File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ docker run --rm --user=$(id -u) --volume=$HOME:$HOME:ro --workdir=$PWD --env=PLU
8686| ` annotation ` | PLUGIN_ANNOTATION | ` none ` | Annotations (also known as labels) to add to image |
8787| ` push ` | PLUGIN_PUSH | ` true ` | Push images if output names are set. |
8888| ` auth ` | PLUGIN_AUTH | ` none ` | Auth for private registries |
89+ | ` env-file ` | PLUGIN_ENV_FILE | ` none ` | Source environment values from given file |
8990
9091## Alternatives
9192
Original file line number Diff line number Diff line change @@ -5,6 +5,15 @@ set -eu;
55# # check input
66# #
77
8+ if [[ -n " ${PLUGIN_ENV_FILE:- } " ]]; then
9+ if [[ ! -f " PLUGIN_ENV_FILE" ]]; then
10+ echo " Env file $PLUGIN_ENV_FILE not found."
11+ exit 1
12+ fi
13+ # shellcheck source=/dev/null
14+ source " $PLUGIN_ENV_FILE "
15+ fi
16+
817BUILDCTL_CONTEXT=${PLUGIN_CONTEXT:- $(pwd)}
918BUILDCTL_DOCKERFILE=$( dirname " ${PLUGIN_DOCKERFILE:- $BUILDCTL_CONTEXT / Dockerfile} " )
1019if [[ ! -f $BUILDCTL_DOCKERFILE /Dockerfile ]]; then
You can’t perform that action at this time.
0 commit comments