mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-22 01:17:16 +00:00
12 lines
256 B
Bash
Executable file
12 lines
256 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
TAG=${IMAGE_TAG:-'latest'}
|
|
|
|
docker build --build-arg ARGO_VERSION="${TAG}" -t "${IMAGE_NAMESPACE:-$(whoami)}/argocd-ui:${TAG}" .
|
|
|
|
if [ "$DOCKER_PUSH" == "true" ]
|
|
then
|
|
docker push "${IMAGE_NAMESPACE:-$(whoami)}/argocd-ui:${TAG}"
|
|
fi
|