mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-04-01 22:38:46 +02:00
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 ARGO_VERSION="${TAG}" -t "${IMAGE_NAMESPACE:-$(whoami)}/argocd-ui:${TAG}" .
|
|
|
|
if [ "$DOCKER_PUSH" == "true" ]
|
|
then
|
|
docker push "${IMAGE_NAMESPACE:-$(whoami)}/argocd-ui:${TAG}"
|
|
fi
|