mirror of
https://github.com/hanzoai/cd.git
synced 2026-10-30 14:56:45 +00:00
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.
13 lines
256 B
Bash
Executable File
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
|