From e12a8ece32a46da36e5fed8993cb69dc6fd3a371 Mon Sep 17 00:00:00 2001 From: Daniel Dolezal Date: Thu, 30 Jun 2022 22:07:34 +0200 Subject: [PATCH] update build script if main then change to latest --- .gitignore | 2 ++ build.sh | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 0e9f1b3..ea20769 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ sshkeys/clients/ sshkeys/host/ +crontab.txt +maintain_repo.sh diff --git a/build.sh b/build.sh index 551df4a..4038de7 100755 --- a/build.sh +++ b/build.sh @@ -24,6 +24,10 @@ build_docker_image() { docker build -t "$DOCKER_IMAGE_NAME:$TAG" . } +if [ "$GIT_BRANCH" == "main" ]; then + GIT_BRANCH="latest" +fi + case "$1" in run) run_docker_container