-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04421c7
commit 61b58b9
Showing
3 changed files
with
27 additions
and
14 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# To be used in a cronjob to always pull and build the latest commit to the current branch | ||
# every 10 minutes | ||
# so that the running container is only 10 minutes behind the latest commit in the branch | ||
|
||
# crontab -e | ||
# */10 * * * * sudo bash /sourcegraph/implementation-bridges/repo-converter/build/pull-build-start.sh >> /sourcegraph/implementation-bridges/repo-converter/build/pull-build-start.log 2>&1 | ||
|
||
repo_converter_build_path="/sourcegraph/implementation-bridges/repo-converter/build" | ||
|
||
git -C $repo_converter_build_path pull | ||
|
||
docker compose -f $repo_converter_build_path/docker-compose.yaml up -d --build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# To be used in a cronjob to always pull and use the latest image | ||
# so that the running container is only x minutes/hours behind the latest version of the docker-compose.yaml file, and the Docker image tagged latest in GitHub packages | ||
|
||
# crontab -e | ||
# */10 * * * * sudo bash /sourcegraph/implementation-bridges/repo-converter/pull-start.sh >> /sourcegraph/implementation-bridges/repo-converter/pull-start.log 2>&1 | ||
|
||
repo_converter_path="/sourcegraph/implementation-bridges/repo-converter" | ||
|
||
git -C $repo_converter_path pull | ||
|
||
docker compose -f $repo_converter_path/docker-compose.yaml up -d |