Skip to content

Commit

Permalink
Merge pull request #24 from clingen-data-model/vcv-new-watcher-replac…
Browse files Browse the repository at this point in the history
…es-somatic-watcher

Deployment of the new vcv-new watcher as update to the somatic-ftp-wa…
  • Loading branch information
toneillbroad authored Oct 21, 2024
2 parents 15b86c3 + 38602ce commit 70471d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-job-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ jobs:
run: |
bash misc/bin/deploy-job.sh
- name: set env vars somatic
- name: set env vars vcv new
run: |
export branch=${{ github.event.workflow_run.head_branch }}
export commit=${{ github.event.workflow_run.head_sha }}
echo "branch=$branch" >> $GITHUB_ENV
echo "commit=$commit" >> $GITHUB_ENV
echo "instance=clinvar-somatic-ftp-watcher" >> $GITHUB_ENV
echo "instance=clinvar-vcv-ftp-watcher-new" >> $GITHUB_ENV
- name: build and deploy somatic
- name: build and deploy vcv new
run: |
bash misc/bin/deploy-job.sh
16 changes: 8 additions & 8 deletions misc/bin/deploy-job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ rcv_cloud_run_deploy="${vcv_cloud_run_deploy} \
--set-env-vars=GCP_WORKFLOW_NAME=clinvar-rcv-ingest"

# override variant biased env vars with somatic specifics
somatic_cloud_run_deploy="${vcv_cloud_run_deploy} \
vcv_new_cloud_run_deploy="${vcv_cloud_run_deploy} \
--set-env-vars=CLINVAR_FTP_WATCHER_TOPIC=clinvar-somatic-ftp-watcher \
--set-env-vars=NCBI_CLINVAR_WEEKLY_FTP_DIR=/pub/clinvar/xml/weekly_release \
--set-env-vars=NCBI_CLINVAR_FILE_NAME_BASE=ClinVarVCVRelease \
--set-env-vars=GCP_WORKFLOW_LOCATION=${region} \
--set-env-vars=GCP_WORKFLOW_NAME=clinvar-ingest-copy-only"
--set-env-vars=GCP_WORKFLOW_NAME=clinvar-vcv-ingest-new"

scheduler_command="gcloud scheduler jobs ${command} http ${instance} \
--location ${region} \
Expand All @@ -102,20 +102,20 @@ scheduler_command="gcloud scheduler jobs ${command} http ${instance} \
# turn on echo turn of filename expansion of wildcards
set +e -f

if [[ ${instance} =~ ^.*rcv.*$ ]]; then
if [ ${instance} == "clinvar-rcv-ftp-watcher" ]; then
echo "Running the RCV watcher deployment..."
$rcv_cloud_run_deploy
echo "Running RCV cloud run scheduler deployment"
$scheduler_command --schedule='50 * * * *'
elif [[ ${instance} =~ ^.*vcv.*$ ]]; then
elif [ ${instance} == "clinvar-vcv-ftp-watcher" ]; then
echo "Running the VCV watcher deployment..."
$vcv_cloud_run_deploy
echo "Running VCV cloud run scheduler deployment"
$scheduler_command --schedule='45 * * * *'
elif [[ ${instance} =~ ^.*somatic.*$ ]]; then
echo "Running the somatic watcher deployment..."
$somatic_cloud_run_deploy
echo "Running somatic cloud run scheduler deployment"
elif [ ${instance} == "clinvar-vcv-ftp-watcher-new" ]; then
echo "Running the VCV watcher deployment..."
$vcv_new_cloud_run_deploy
echo "Running VCV NEW cloud run scheduler deployment"
$scheduler_command --schedule='55 * * * *'
fi
echo "Deployment complete."

0 comments on commit 70471d8

Please sign in to comment.