Skip to content

Deploy by @toneillbroad #18

Deploy by @toneillbroad

Deploy by @toneillbroad #18

name: Deploy Job
run-name: Deploy ${{ github.event.workflow_run.head_branch }} by @${{ github.actor }}
on:
push:
branches:
- main
permissions:
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_branch }}
- name: authenticate to google cloud
id: "auth"
uses: google-github-actions/auth@v2
with:
workload_identity_provider: projects/522856288592/locations/global/workloadIdentityPools/clingen-actions-pool/providers/clingen-github-actions
service_account: clinvar-ftp-watcher-deployment@clingen-dev.iam.gserviceaccount.com
- name: setup gcloud sdk
uses: google-github-actions/setup-gcloud@v2
- name: set env vars vcv
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-vcv-ftp-watcher" >> $GITHUB_ENV
- name: build and deploy vcv
run: |
bash misc/bin/deploy-job.sh
- name: set env vars rcv
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-rcv-ftp-watcher" >> $GITHUB_ENV
- name: build and deploy rcv
run: |
bash misc/bin/deploy-job.sh
- name: set env vars somatic
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
- name: build and deploy somatic
run: |
bash misc/bin/deploy-job.sh