Skip to content

[WIP] Add cloudbuild.yaml and build script for image promotion#986

Closed
dims wants to merge 1 commit intokubernetes-sigs:mainfrom
dims:cloudbuild
Closed

[WIP] Add cloudbuild.yaml and build script for image promotion#986
dims wants to merge 1 commit intokubernetes-sigs:mainfrom
dims:cloudbuild

Conversation

@dims
Copy link
Copy Markdown
Member

@dims dims commented Apr 3, 2026

Add GCB (Google Cloud Build) configuration to enable image building and promotion via the k8s-staging-images infrastructure, following the same pattern as dra-driver-cpu.

Add GCB (Google Cloud Build) configuration to enable image building
and promotion via the k8s-staging-images infrastructure, following the
same pattern as dra-driver-cpu.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 3, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dims

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested a review from klueska April 3, 2026 01:37
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 3, 2026
Comment thread cloudbuild.yaml
@@ -0,0 +1,9 @@
# See https://cloud.google.com/cloud-build/docs/build-config

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add timeout as well? The default seems to be 10mins and multi-arch builds might exceed that.

if git describe --exact-match --tags HEAD >/dev/null 2>&1; then
IMG_TAG=$(git describe --exact-match --tags HEAD)
else
IMG_TAG="$(date +v%Y%m%d)-$(git rev-parse --short HEAD)"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like _GIT_TAG is already available, should we pass it as an env same like the IMAGE_PREFIX?

@dims
Copy link
Copy Markdown
Member Author

dims commented Apr 3, 2026

@shivamerla can you please take this over :) thanks!

@dims dims closed this Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants