Move tag to build.sh

tool_auto-editor
Ruakij 2 years ago
parent 85a3dbfb96
commit 019a6d3f63

@ -7,12 +7,15 @@ utils_path="${scriptPath_folder}/utils"
WORKDIR=${1:-$PWD} WORKDIR=${1:-$PWD}
WORKDIR=$(realpath "$WORKDIR") WORKDIR=$(realpath "$WORKDIR")
# -- VARIABLES --
# Store original path # Store original path
ORIGINALDIR=$PWD ORIGINALDIR=$PWD
# Get args without path # Get args without path
EXTRA_ARGS="${@:2}" EXTRA_ARGS="${@:2}"
TAG=${TAG:-"${TAG_PREFIX}${NAME}"}
# Call prepare # Call prepare
printf "# PREPARE\n" printf "# PREPARE\n"

@ -1,5 +1,4 @@
#!/bin/bash #!/bin/bash
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"}
docker buildx build \ docker buildx build \

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

Loading…
Cancel
Save