Repository navigation
build(release): publish the urbex-op image on ghcr.io and use it by default - #107
Merged
Merged
Conversation
urbex version (and --output json), urbex --version, and the version at the top of urbex doctor. A release sets it with -ldflags -X; a build from source says dev and the commit Go embedded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0182yxsfwRowwnxCfgrQwjnA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0182yxsfwRowwnxCfgrQwjnA
…efault The release workflow builds tools/operator/Containerfile's release target from GoReleaser's binaries, for linux/amd64 and linux/arm64, pushes ghcr.io/urbforge/urbex-op:<version> (and :latest without a suffix), and attaches urbex-op set to that version. urbex-op runs its version's image and pulls it the first time; from a checkout, the image build makes, as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0182yxsfwRowwnxCfgrQwjnA
stefanoghinelli
approved these changes
Nov 17, 2026
…phs together Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0182yxsfwRowwnxCfgrQwjnA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0182yxsfwRowwnxCfgrQwjnA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0182yxsfwRowwnxCfgrQwjnA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tools/operator/Containerfile: three stages.tools: Debian with the tools frommise.toml, as before.release(--target release):toolsplus the binary GoReleaser built for the platform, read from<os>/<arch>/urbexin the context (TARGETPLATFORM).toolsplusurbexbuilt from the checkout, as before. It now takesURBEX_COMMIT, so a source build'surbex versionsays its commit (the context has no.git)..github/workflows/release.yml(on top of build(release): binaries with GoReleaser on a version tag #106), after GoReleaser:dist/artifacts.json(the linux binaries) andmise.toml;GITHUB_TOKEN(packages: writefor the release job);ghcr.io/urbforge/urbex-op:<version>, and:latestunless the tag has a suffix, linux/amd64 and linux/arm64, with OCI labels (source, version, licence) and provenance;urbex-opto the release withURBEX_OP_VERSIONset to the version (the step fails if the line didn't change);tools/operator/urbex-op:URBEX_OP_VERSION=devin the repository. A release's copy runsghcr.io/urbforge/urbex-op:<its version>; from a checkout,urbex-operator, the imagebuildmakes, as before.URBEX_OPERATOR_IMAGEstill overrides either.urbex-op: pulling ...); with a local image missing, says to runurbex-op build.urbex-op version: the script's version and its image.buildwithout a checkout says it needs one.buildpasses the commit.tools/operator/README.md,README.md: the release path (download one file, it pulls its image), the default image, how a release builds the image.The ghcr package is created private by the first push: making it public is a package setting (Teg, after the first
-rc).Depends on #106 (GoReleaser), itself on #105: this branch is on top of both.
Why
Testers should pull a published image instead of building it from a checkout (v0.1.0, urbforge/redemptor#53).
Tests I ran
v0.1.0-rc.0GoReleaser run:linux/amd64/urbex,linux/arm64/urbex,mise.toml.podman build --platform linux/amd64 --target releaseon that context: builds without the Go stage. In the image,urbex versionsays0.1.0-rc.0, with Terraform 1.13.3, ansible-core 2.21.5 and sops 3.13.3.urbex-op(version set to0.1.0-rc.0):URBEX_OPERATOR_IMAGE):init, thenurbex version, both work;ghcr.io/urbforge/urbex-op:0.1.0-rc.0(403 for now: nothing is published yet);version;buildrefuses without a checkout.urbex-op: a missing local image gives the hint;urbex-op buildstill builds, and itsurbex versionnow saysdev (commit a85a781, linux/amd64).mise run lint: passes.v0.1.0-rc.1, then I check the image on both architectures with podman (Linux) and docker (macOS, with Teg).Checklist before review
-rcimage (after merge)Fixes #103
🤖 Generated with Claude Code
https://claude.ai/code/session_0182yxsfwRowwnxCfgrQwjnA