Skip to content

Add Cloud Build pipeline for tag-triggered AR uploads#18

Merged
teeler merged 2 commits into
googlecolab:mainfrom
teeler:cloudbuild-tag-trigger-gh
May 18, 2026
Merged

Add Cloud Build pipeline for tag-triggered AR uploads#18
teeler merged 2 commits into
googlecolab:mainfrom
teeler:cloudbuild-tag-trigger-gh

Conversation

@teeler
Copy link
Copy Markdown
Contributor

@teeler teeler commented May 18, 2026

Builds sdist + wheel via 'uv build' against the tagged commit and publishes both to the colab-cli Python repo in Artifact Registry (us-central1-python.pkg.dev/colab-cli-external/colab-cli). Hatch-vcs derives the version from the tag, so the build unshallows the GitHub checkout to make 'git describe' return the clean tag name.

Builds sdist + wheel via 'uv build' against the tagged commit and publishes
both to the colab-cli Python repo in Artifact Registry
(us-central1-python.pkg.dev/colab-cli-external/colab-cli). Hatch-vcs derives
the version from the tag, so the build unshallows the GitHub checkout to
make 'git describe' return the clean tag name.
@teeler teeler requested a review from sethtroisi May 18, 2026 22:57
Comment thread cloudbuild.yaml Outdated
Comment thread cloudbuild.yaml Outdated
The uv:python3.13-bookworm-slim image lacks a git binary, which causes
hatch-vcs to fail with 'not a git repository' during 'uv build'. Switch
to the non-slim bookworm variant so git is available for the version
derivation.

Also simplify the shell prologue in each step to 'set -e' (the existing
'set -euo pipefail' was overkill: no pipelines are used, and Cloud Build
expands substitutions before bash sees them so '-u' adds no coverage).
@teeler teeler merged commit bc29f73 into googlecolab:main May 18, 2026
2 checks passed
@teeler teeler deleted the cloudbuild-tag-trigger-gh branch May 18, 2026 23:54
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.

2 participants