update build script if main then change to latest

This commit is contained in:
2022-06-30 22:07:34 +02:00
parent 244d229472
commit e12a8ece32
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -1,2 +1,4 @@
sshkeys/clients/ sshkeys/clients/
sshkeys/host/ sshkeys/host/
crontab.txt
maintain_repo.sh
+4
View File
@@ -24,6 +24,10 @@ build_docker_image() {
docker build -t "$DOCKER_IMAGE_NAME:$TAG" . docker build -t "$DOCKER_IMAGE_NAME:$TAG" .
} }
if [ "$GIT_BRANCH" == "main" ]; then
GIT_BRANCH="latest"
fi
case "$1" in case "$1" in
run) run)
run_docker_container run_docker_container