add support for dockerfile build target
This commit is contained in:
parent
0eb7c2716d
commit
3cd65aba50
@ -22,6 +22,10 @@ DOCKERFILE=${PLUGIN_DOCKERFILE:-Dockerfile}
|
|||||||
CONTEXT=${PLUGIN_CONTEXT:-$PWD}
|
CONTEXT=${PLUGIN_CONTEXT:-$PWD}
|
||||||
LOG=${PLUGIN_LOG:-info}
|
LOG=${PLUGIN_LOG:-info}
|
||||||
|
|
||||||
|
if [[ -n "${PLUGIN_TARGET:-}" ]]; then
|
||||||
|
TARGET="--target=${PLUGIN_TARGET}"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "${PLUGIN_CACHE:-}" == "true" ]]; then
|
if [[ "${PLUGIN_CACHE:-}" == "true" ]]; then
|
||||||
CACHE="--cache=true"
|
CACHE="--cache=true"
|
||||||
fi
|
fi
|
||||||
@ -41,4 +45,5 @@ fi
|
|||||||
--dockerfile=${DOCKERFILE} \
|
--dockerfile=${DOCKERFILE} \
|
||||||
${DESTINATIONS} \
|
${DESTINATIONS} \
|
||||||
${CACHE:-} \
|
${CACHE:-} \
|
||||||
|
${TARGET:-} \
|
||||||
${BUILD_ARGS:-}
|
${BUILD_ARGS:-}
|
||||||
|
Reference in New Issue
Block a user