Commit Graph
11 Commits
Author SHA1 Message Date
Mike Dalessio fb0d34ec10 Check the release tag through gh, and stop when the check fails
The tag check ignored a failed `git ls-remote` and continued as if the
tag did not exist, and it asked `origin`, which can differ from the
repository `gh` releases to.

Look the tag up with `gh api`, abort when that call fails, and accept
only a version of dot-separated numbers.

A 1.5.x release still moves `latest` on both registries. That is
harmless until 1.6 ships, so it is left for then.
2026-11-06 15:24:35 -05:00
Mike Dalessio 3a3579264d Build the release image from the committed tree
The image build used the working tree as its context, so untracked files
such as `.ruby-lsp/` shipped in the registry.once.com image.

Extract `git archive` of `HEAD` once and build both the image and the
source ZIP from it. Say in the uncommitted-changes prompt that those
changes are not released.
2026-11-06 15:24:35 -05:00
Mike Dalessio 86909e302d Export the release ZIP from the committed tree
The export image copied the working tree, so untracked files such as
`.ruby-lsp/` landed in the published ZIP.

Build it from `git archive` of `HEAD`, extracted to a directory so that
`.dockerignore` still applies.
2026-11-06 15:14:00 -05:00
Mike Dalessio d124120690 Tag the release at the commit being released
`bin/release` let `gh release create` make the tag, and `gh` makes a
new tag at the head of the default branch. Running it on `release-1.5`
tagged `main` as v1.5.7, so the GitHub release and the GHCR images
shipped `main`.

Pass `HEAD` as `--target`, and abort when the tag already exists on
origin at a different commit.
2026-11-06 15:14:00 -05:00
Stanko K.R. e5cfffda67 Check the registry login before releasing
The GitHub release was created before the image push failed on a missing
docker login, leaving the release half done.
2026-09-26 11:16:03 +02:00
Stanko K.R. 2aa4141077 Port over automatic note generation 2026-08-04 17:13:07 +02:00
Stanko K.R. b3d97ecb0e Add safety checks to release script 2025-12-03 08:24:04 +01:00
Stanko K.R. 13897eac59 Set title on new releases to be the version number 2025-12-02 08:36:15 +01:00
Stanko K.R. af81a4c1ac Create release first 2025-12-01 12:21:08 +01:00
Stanko K.R. 133859b8fb Create a Github release 2025-12-01 11:20:31 +01:00
Stanko K.R.andKevin McConnell ead80316e0 Port over release script
Co-Authored-By: Kevin McConnell <kevin@37signals.com>
2025-12-01 10:40:24 +01:00