-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto Download databases onto CICD instance #2363
- Loading branch information
1 parent
39d7926
commit 134f37a
Showing
1 changed file
with
12 additions
and
4 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -35,17 +35,25 @@ jobs: | |
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
|
||
- name: Set up config files | ||
run: | | ||
scp [email protected]:config_secrets.json /mnt/config/config_secrets.json | ||
echo "http://localhost:5008/api/rtxkg2/v1.4" > /mnt/config/kg2_url_override.txt | ||
# - name: Append code dir to GITHUB_PATH # Causing RTXConfiguration import error | ||
# run: echo $GITHUB_PATH | ||
# - name: Download databases as needed | ||
# run: python3 $HOME/RTX/code/ARAX/ARAXQuery/ARAX_database_manager.py --mnt --skip-if-exists --remove_unused | ||
- name: Download databases into CICD instance | ||
continue-on-error: true | ||
run: | | ||
cd /home/ubuntu/RTX | ||
git checkout ${GITHUB_REF#refs/heads/} | ||
git pull origin ${GITHUB_REF#refs/heads/} | ||
/home/ubuntu/venv3.9/bin/pip3 install -r requirements.txt | ||
/home/ubuntu/venv3.9/bin/python3 code/ARAX/ARAXQuery/ARAX_database_manager.py --mnt --skip-if-exists --remove_unused | ||
git checkout master | ||
- name: Stop any running containers | ||
continue-on-error: true | ||
|