Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add vlm dev release #4460

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/dev-vlm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: vlm dev release
on:
workflow_run:
workflows: ["VLM Unit Tests"]
types:
- completed
branches:
- dev

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-dev" --config .cloudbuild/seqr-vlm-docker.cloudbuild.yaml --gcs-log-dir=gs://seqr-github-actions-logs/logs .

helm_update:
runs-on: ubuntu-latest
needs: docker
steps:
- name: Retrieve tgg-helm repo for broad seqr chart
uses: actions/checkout@v3
with:
repository: broadinstitute/tgg-helm
token: ${{ secrets.SEQR_VERSION_UPDATE_TOKEN }}
ref: main
persist-credentials: false
fetch-depth: 0

- name: update image tag in the dev broad seqr chart
uses: mikefarah/[email protected]
with:
cmd: >
yq -i '.seqr-platform.vlm.image.tag = "${{ github.event.workflow_run.head_sha }}"' charts/dev-broad-seqr/values.yaml

- name: Commit and Push changes
uses: Andro999b/[email protected]
with:
repository: broadinstitute/tgg-helm
branch: main
github_token: ${{ secrets.SEQR_VERSION_UPDATE_TOKEN }}
author_email: ${{ github.actor }}@users.noreply.github.com
author_name: tgg-automation
message: "Update VLM dev release docker tag to ${{ github.event.workflow_run.head_sha }}"
6 changes: 4 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ on:
paths-ignore:
- 'hail_search/**'
- 'vlm/**'
- '.github/workflows/hail-search-unit-tests.yaml'
- '.github/workflows/*hail-search*.yaml'
- '.github/workflows/*vlm*.yaml'
pull_request:
types: [opened, synchronize, reopened]
paths-ignore:
- 'hail_search/**'
- 'vlm/**'
- '.github/workflows/hail-search-unit-tests.yaml'
- '.github/workflows/*hail-search*.yaml'
- '.github/workflows/*vlm*.yaml'

jobs:
python:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/vlm-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ on:
- dev
paths:
- 'vlm/**'
- '.github/workflows/*vlm*.yaml'
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'vlm/**'
- '.github/workflows/*vlm*.yaml'

jobs:
vlm:
Expand Down
Loading