Skip to content

fix: use git describe for image tags, add make tag#64

Merged
robbycochran merged 6 commits into
mainfrom
rc-fix-tag
Jun 13, 2026
Merged

fix: use git describe for image tags, add make tag#64
robbycochran merged 6 commits into
mainfrom
rc-fix-tag

Conversation

@robbycochran

Copy link
Copy Markdown
Collaborator

Summary

  • Image tags now use git describe --tags --always output (e.g., sandbox-v0.1.2-12-gabcdef0) instead of bare short SHAs (sandbox-abc1234), matching what the Makefile embeds via VERSION
  • Tag pushes still produce clean semver tags (sandbox-v0.2.0)
  • Added fetch-depth: 0 to images workflow checkout so git describe has tag history
  • Added make tag v=0.2.0 convenience target for creating annotated release tags

Test plan

  • make test passes
  • CI workflows pass
  • Verify image tags on next main push match git describe output

The images workflow was tagging with bare short SHAs (sandbox-abc1234)
which did not match the Makefile's VERSION (git describe output like
v0.1.2-12-gabcdef0). Now non-tag pushes tag with the full git describe
output so the image tag matches what make cli embeds.

Tag pushes still produce clean semver tags (sandbox-v0.2.0).

Added make tag v=X.Y.Z convenience target for creating release tags.
Harness-specific env vars now use HARNESS_OS_ prefix:
  HARNESS_OS_DIR (was HARNESS_DIR)
  HARNESS_OS_IMAGE (was SANDBOX_IMAGE)
  HARNESS_OS_GATEWAY (was GATEWAY_NAME)
  HARNESS_OS_PULL_SECRET (was PULL_SECRET)
  HARNESS_OS_SANDBOX_PULL_SECRET (was SANDBOX_PULL_SECRET)

OpenShell runtime vars keep OPENSHELL_ prefix:
  OPENSHELL_CLI, OPENSHELL_NAMESPACE, OPENSHELL_MODEL,
  OPENSHELL_CHART_VERSION

Also renamed DEV_SANDBOX_IMAGE to IMAGE in Makefile.
Pipe output through sed to remove ANSI escape sequences before writing
to the log file. The log artifacts are now clean ASCII text.
The kind-lifecycle script was skipping image preload when CI=true,
forcing the kind cluster to pull from the registry at sandbox create
time. This caused slow or stuck pulls for the ~800MB sandbox image.

Now the locally-built image is always preloaded into kind via
'kind load docker-image' when available, regardless of CI mode.
@robbycochran robbycochran merged commit 9666801 into main Jun 13, 2026
6 of 7 checks passed
@robbycochran robbycochran deleted the rc-fix-tag branch June 13, 2026 14:02
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.

1 participant