Move args-declaration to build
This commit is contained in:
parent
d32f36dd29
commit
b6c8457bc3
@ -4,6 +4,9 @@ scriptPath_file=$(dirname "${BASH_SOURCE[0]}")
|
||||
scriptPath_folder=$(realpath "${scriptPath_file}")
|
||||
utils_path="${scriptPath_folder}/utils"
|
||||
|
||||
# Get args without path
|
||||
EXTRA_ARGS="${@:2}"
|
||||
|
||||
# Call prepare
|
||||
printf "# PREPARE\n"
|
||||
source ${utils_path}/prepare.sh
|
||||
|
@ -1,7 +1,6 @@
|
||||
#!/bin/bash
|
||||
TAG=${TAG:-"${TAG_PREFIX}${NAME}"}
|
||||
PLATFORM=${PLATFORM:-"linux/amd64,linux/arm64/v8,linux/arm/v7"}
|
||||
EXTRA_ARGS=${EXTRA_ARGS:-"$@"}
|
||||
|
||||
docker buildx build \
|
||||
--platform $PLATFORM \
|
||||
|
@ -1,6 +1,5 @@
|
||||
#!/bin/bash
|
||||
TAG=${TAG:-"${TAG_PREFIX}${NAME}"}
|
||||
EXTRA_ARGS=${EXTRA_ARGS:-"$@"}
|
||||
|
||||
docker build \
|
||||
--tag $TAG:latest \
|
||||
|
Loading…
x
Reference in New Issue
Block a user