Move args-declaration to build

tool_auto-editor
Ruakij 2 years ago
parent d32f36dd29
commit b6c8457bc3

@ -4,6 +4,9 @@ scriptPath_file=$(dirname "${BASH_SOURCE[0]}")
scriptPath_folder=$(realpath "${scriptPath_file}") scriptPath_folder=$(realpath "${scriptPath_file}")
utils_path="${scriptPath_folder}/utils" utils_path="${scriptPath_folder}/utils"
# Get args without path
EXTRA_ARGS="${@:2}"
# Call prepare # Call prepare
printf "# PREPARE\n" printf "# PREPARE\n"
source ${utils_path}/prepare.sh source ${utils_path}/prepare.sh

@ -1,7 +1,6 @@
#!/bin/bash #!/bin/bash
TAG=${TAG:-"${TAG_PREFIX}${NAME}"} TAG=${TAG:-"${TAG_PREFIX}${NAME}"}
PLATFORM=${PLATFORM:-"linux/amd64,linux/arm64/v8,linux/arm/v7"} PLATFORM=${PLATFORM:-"linux/amd64,linux/arm64/v8,linux/arm/v7"}
EXTRA_ARGS=${EXTRA_ARGS:-"$@"}
docker buildx build \ docker buildx build \
--platform $PLATFORM \ --platform $PLATFORM \

@ -1,6 +1,5 @@
#!/bin/bash #!/bin/bash
TAG=${TAG:-"${TAG_PREFIX}${NAME}"} TAG=${TAG:-"${TAG_PREFIX}${NAME}"}
EXTRA_ARGS=${EXTRA_ARGS:-"$@"}
docker build \ docker build \
--tag $TAG:latest \ --tag $TAG:latest \

Loading…
Cancel
Save