fix: filter link and volume flags for dockerfile builds

The link flag was previously not filtered _after_ fetching build args for dockerfile builds, which meant if a plugin exposed that in it's own docker-args-build trigger, it would break deploys.

Additionally, allow for whitespaces between link and volume flags.
This commit is contained in:
Jose Diaz-Gonzalez
2021-10-05 12:19:38 -04:00
parent b41b5c0a68
commit 52d9cb6188
4 changed files with 166 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ trigger-docker-options-docker-args() {
case "$IMAGE_SOURCE_TYPE" in
dockerfile)
case "$line" in
--link* | -v*)
--link* | -v* | --volume*)
continue
;;