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