Skip to content

Commit

Permalink
Keep running forever
Browse files Browse the repository at this point in the history
  • Loading branch information
frapa committed Mar 24, 2021
1 parent 632d736 commit f3a2576
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build_publish_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ docker build . -f Dockerfile_plain \
-t frapasa/rept:$major.$minor.$patch > /dev/null

echo "Pushing plain image..."
docker image push --all-tags frapasa/rept
# docker image push --all-tags frapasa/rept

echo "Building debian image..."
docker build . -f Dockerfile_debian \
Expand All @@ -24,6 +24,6 @@ docker build . -f Dockerfile_debian \
-t frapasa/rept:$major.$minor.$patch-buster > /dev/null

echo "Pushing debian image..."
docker image push --all-tags frapasa/rept
# docker image push --all-tags frapasa/rept

echo "Success!"
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ func main() {
err := Run(os.Args)
if err != nil {
fmt.Println(err)
} else {
for {
// keep running - otherwise we will have orphan goroutines
}
}
}

Expand Down

0 comments on commit f3a2576

Please sign in to comment.