Skip to content

Commit

Permalink
optimize image retag
Browse files Browse the repository at this point in the history
Signed-off-by: iutx <[email protected]>
  • Loading branch information
iutx committed Jan 31, 2024
1 parent 353d454 commit 2e1e172
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build/scripts/docker_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ cd $(git rev-parse --show-toplevel)
ARCH="${ARCH:-$(go env GOARCH)}"
VERSION="$(build/scripts/make-version.sh)"
IMAGE_TAG="${IMAGE_TAG:-$(build/scripts/make-version.sh tag)}"
IMAGE_TAG_WITH_ARCH="${IMAGE_TAG:-$(build/scripts/make-version.sh tag)}-${ARCH}"
DOCKERFILE_DEFAULT="build/dockerfiles/Dockerfile"
BASE_DOCKER_IMAGE="registry.erda.cloud/erda/erda-base:20230811"
DOCKERFILE=${DOCKERFILE_DEFAULT}
Expand All @@ -52,8 +51,8 @@ setup_single_module_env() {
elif [ -d "build/dockerfiles/${APP_NAME}" ];then
DOCKERFILE="build/dockerfiles/${APP_NAME}/Dockerfile"
fi
DOCKER_IMAGE="${APP_NAME}:${IMAGE_TAG_WITH_ARCH}"
IMAGE_TAG="${IMAGE_TAG_WITH_ARCH}"
IMAGE_TAG="${IMAGE_TAG}-${ARCH}"
DOCKER_IMAGE="${APP_NAME}:${IMAGE_TAG}"
}

# setup envionment variables for build all
Expand Down

0 comments on commit 2e1e172

Please sign in to comment.