Skip to content

Commit

Permalink
Add production hail search release (#3847)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpblanken authored Jan 31, 2024
1 parent 5c01d3f commit 90dad16
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/prod-hail-search-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: seqr hail search prod release
on:
workflow_run:
workflows: ["Hail Search Unit Tests"]
types:
- completed
branches:
- master

permissions:
id-token: write

jobs:
docker:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.workflow_run.head_branch }}

- name: authenticate to google cloud
id: "auth"
uses: google-github-actions/auth@v0
with:
workload_identity_provider: "${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}"
service_account: "${{ secrets.RUN_SA_EMAIL }}"

- name: "setup gcloud sdk"
uses: google-github-actions/setup-gcloud@v0

- name: Build and push images
run: |-
gcloud builds submit --quiet --substitutions="COMMIT_SHA=${{ github.event.workflow_run.head_sha }},_CUSTOM_BRANCH_TAG=gcloud-prod" --config .cloudbuild/seqr-hail-search-docker.cloudbuild.yaml --gcs-log-dir=gs://seqr-github-actions-logs/logs .
helm_update:
runs-on: ubuntu-latest
needs: docker
steps:
- uses: actions/checkout@v3
with:
repository: broadinstitute/seqr-helm
ref: main
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo

- name: Update appVersion in hail-search Chart file
uses: mikefarah/[email protected]
with:
cmd: >
yq -i '.appVersion = "${{ github.event.workflow_run.head_sha }}"' charts/hail-search/Chart.yaml
- name: Commit and Push changes
uses: Andro999b/[email protected]
with:
repository: broadinstitute/seqr-helm
branch: main
github_token: ${{ secrets.SEQR_VERSION_UPDATE_TOKEN }}
author_email: ${{ github.actor }}@users.noreply.github.com
author_name: tgg-automation
message: "Update hail-search chart appVersion to ${{ github.event.workflow_run.head_sha }}"

0 comments on commit 90dad16

Please sign in to comment.