Skip to content

Commit

Permalink
Update script to pull latest repo
Browse files Browse the repository at this point in the history
  • Loading branch information
UNiXMIT committed May 9, 2024
1 parent cf5720c commit 7f3ae1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions semaphore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ removeContainer() {

buildContainer() {
printf "Building Container...\n\n"
curl -o $SCRIPT_DIR/Dockerfile https://raw.githubusercontent.com/UNiXMIT/UNiXIaC/main/Dockerfile
sudo ${containerRuntime} pull semaphoreui/semaphore:latest
curl -o Dockerfile https://raw.githubusercontent.com/UNiXMIT/UNiXIaC/main/Dockerfile
sudo ${containerRuntime} build --tag ${containerRepo} -f Dockerfile
}

Expand All @@ -49,7 +50,6 @@ startContainer() {
sudo ${containerRuntime} run -d --name ${containerName} "${runOptions[@]}" ${containerRepo}
}

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
checkContainerRuntime
removeContainer
buildContainer
Expand Down

0 comments on commit 7f3ae1e

Please sign in to comment.