Skip to content

Commit

Permalink
Use _GIT_TAG as DOCKER_TAG in cloudbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
hakman committed Jun 20, 2024
1 parent 90d9451 commit fd55c01
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,28 @@ steps:
env:
- 'DOCKER_REGISTRY=${_DOCKER_REGISTRY}'
- 'DOCKER_IMAGE_PREFIX=${_DOCKER_IMAGE_PREFIX}'
- 'DOCKER_TAG=${COMMIT_SHA}'
- 'DOCKER_TAG=${_GIT_TAG}'
- name: gcr.io/cloud-builders/bazel:5.4.0
args: ['run', '//images:push-etcd-manager-slim']
env:
- 'DOCKER_REGISTRY=${_DOCKER_REGISTRY}'
- 'DOCKER_IMAGE_PREFIX=${_DOCKER_IMAGE_PREFIX}'
- 'DOCKER_TAG=${COMMIT_SHA}'
- 'DOCKER_TAG=${_GIT_TAG}'
- name: gcr.io/cloud-builders/bazel:5.4.0
args: ['run', '//images:push-etcd-dump']
env:
- 'DOCKER_REGISTRY=${_DOCKER_REGISTRY}'
- 'DOCKER_IMAGE_PREFIX=${_DOCKER_IMAGE_PREFIX}'
- 'DOCKER_TAG=${COMMIT_SHA}'
- 'DOCKER_TAG=${_GIT_TAG}'
- name: gcr.io/cloud-builders/bazel:5.4.0
args: ['run', '//images:push-etcd-backup']
env:
- 'DOCKER_REGISTRY=${_DOCKER_REGISTRY}'
- 'DOCKER_IMAGE_PREFIX=${_DOCKER_IMAGE_PREFIX}'
- 'DOCKER_TAG=${COMMIT_SHA}'
- 'DOCKER_TAG=${_GIT_TAG}'

timeout: 1800s
substitutions:
_COMMIT_SHA: '12345'
_DOCKER_REGISTRY: 'us-central1-docker.pkg.dev'
_DOCKER_IMAGE_PREFIX: 'k8s-infra-staging-images/etcd-manager/'
options:
Expand Down

0 comments on commit fd55c01

Please sign in to comment.