Skip to content

Conversation

@VirajP1002
Copy link

@VirajP1002 VirajP1002 commented Nov 14, 2025

Motivation and Context

The Cloud Build pipeline currently uses the raw branch name as the Docker image tag, which may include special characters like / which are not allowed in Docker tags. This is typically caused by Dependabot branch names.

What has changed

To stop builds from failing, we replace $BRANCH_NAME with $SHORT_SHA and dev-images in the cloud-build-on-pr pipeline configuration. This removes branch names from the image tag meaning that any branch with special characters won't fail any builds. Additionally, the dev-images tag will make it easier for developers to identify images alongside the commit SHA.

How to test?

  1. Create a project environment following the README
  2. Manually run the cir-proxy-service-build-push-on-pr pointing to this branch
  3. Check your GAR for the new image and check the tags are the latest commit hash (of this branch) and dev-images

Links

Ticket

@VirajP1002 VirajP1002 changed the title Change tag for image from BRANCH_NAME to SHORT_SHA EQS-494: Change tags for build on PR images from BRANCH_NAME to SHORT_SHA & dev-images Nov 14, 2025
@VirajP1002 VirajP1002 changed the title EQS-494: Change tags for build on PR images from BRANCH_NAME to SHORT_SHA & dev-images EQS-494: Update tags for build-on-pr images from BRANCH_NAME to SHORT_SHA & dev-images Nov 14, 2025
@VirajP1002 VirajP1002 marked this pull request as ready for review November 14, 2025 16:25
@VirajP1002 VirajP1002 requested review from a team as code owners November 14, 2025 16:25
martyncolmer
martyncolmer previously approved these changes Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants