mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01: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
|