Skip to content

Commit

Permalink
add image tag with arch
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 07ba55f commit 5c86022
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/scripts/docker_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ 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 @@ -51,7 +52,7 @@ setup_single_module_env() {
elif [ -d "build/dockerfiles/${APP_NAME}" ];then
DOCKERFILE="build/dockerfiles/${APP_NAME}/Dockerfile"
fi
DOCKER_IMAGE="${APP_NAME}:${IMAGE_TAG}"
DOCKER_IMAGE="${APP_NAME}:${IMAGE_TAG_WITH_ARCH}"
}

# setup envionment variables for build all
Expand Down

0 comments on commit 5c86022

Please sign in to comment.