Files
cd/ui/scripts/build_docker.sh
zeekay 0307abaf8e Dockerfile, ui: rename ARGO_VERSION build-arg to CD_VERSION
Self-contained three-file contract (Dockerfile ARG/ENV, webpack.config.js's
SYSTEM_INFO.version reader, ui/scripts/build_docker.sh's --build-arg) — no
external consumer passes this by name, so a straight rename is safe.
2026-09-05 15:00:16 -07:00

13 lines
256 B
Bash
Executable File

#!/bin/bash
set -e
TAG=${IMAGE_TAG:-'latest'}
docker build --build-arg CD_VERSION="${TAG}" -t "${IMAGE_NAMESPACE:-$(whoami)}/hanzocd-ui:${TAG}" .
if [ "$DOCKER_PUSH" == "true" ]
then
docker push "${IMAGE_NAMESPACE:-$(whoami)}/hanzocd-ui:${TAG}"
fi