Skip to content

Commit

Permalink
Add the kustomization update bits and docker push into the cloud buil…
Browse files Browse the repository at this point in the history
…d config
  • Loading branch information
sjahl committed Sep 6, 2024
1 parent 6f3f419 commit b9938b4
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .cloudbuild/reads.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ steps:
'deploy/dockerfiles/reads/reads-server.dockerfile',
'.',
]

- name: 'gcr.io/cloud-builders/docker'
args:
[
Expand All @@ -19,7 +20,18 @@ steps:
'deploy/dockerfiles/reads/auth.dockerfile',
'.',
]
# TODO: commented out for testing without push
# images:
# - 'us-docker.pkg.dev/$PROJECT_ID/gnomad/gnomad-reads-server:$SHORT_SHA'
# - 'us-docker.pkg.dev/$PROJECT_ID/gnomad/gnomad-reads-api:$SHORT_SHA'

- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'us-docker.pkg.dev/$PROJECT_ID/gnomad/gnomad-reads-server:$SHORT_SHA']

- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'us-docker.pkg.dev/$PROJECT_ID/gnomad/gnomad-api-server:$SHORT_SHA']

images:
- 'us-docker.pkg.dev/$PROJECT_ID/gnomad/gnomad-reads-server:$SHORT_SHA'
- 'us-docker.pkg.dev/$PROJECT_ID/gnomad/gnomad-reads-api:$SHORT_SHA'

availableSecrets:
secretManager:
- versionName: projects/$PROJECT_ID/secrets/GITHUB_DEPLOY_KEY/versions/latest
env: 'DEPLOY_KEY'

0 comments on commit b9938b4

Please sign in to comment.