Skip to content

Commit

Permalink
Adds some additional docs/comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sjahl committed Dec 6, 2024
1 parent 7cac762 commit 9060632
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .cloudbuild/browser.cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Submitting a cloud build using this config from your local machine could be done as:
# gcloud builds submit --config .cloudbuild/browser.cloudbuild.yaml \
# --substitutions=_BRANCH_FOR_IMAGE_NAME="my-branch-name",SHORT_SHA="6f3f419" .
steps:
# API image build
- name: 'ubuntu'
entrypoint: 'bash'
args:
Expand All @@ -24,6 +28,7 @@ steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'us-docker.pkg.dev/${PROJECT_ID}/gnomad/gnomad-api:${_BUILD_TAG}']

# Browser / frontend image build
- name: 'gcr.io/cloud-builders/docker'
args:
[
Expand All @@ -47,7 +52,7 @@ steps:
args: ['./bluegreen-update.sh']
dir: '.cloudbuild'
env:
- 'CLOUDSDK_COMPUTE_ZONE=us-east1-b'
- 'CLOUDSDK_COMPUTE_ZONE=us-east1-c'
- 'CLOUDSDK_CONTAINER_CLUSTER=gnomad-v4'
- 'REPO_PROJECT=$PROJECT_ID'
- 'DOCKER_TAG=$SHORT_SHA'
Expand All @@ -62,4 +67,5 @@ availableSecrets:
options:
dynamicSubstitutions: true
substitutions:
# branch_for_image_name should be set on the build trigger
_BUILD_TAG: '${_BRANCH_FOR_IMAGE_NAME}-${BUILD_ID}'

0 comments on commit 9060632

Please sign in to comment.