Files
coder/scripts/releaser
Denis AfonsoandClaude 7b8d480ae8 fix(scripts/releaser): use the v-prefixed image tag in release notes (#31032)
## Problem

The release wizard writes this into every release's notes:

```
docker pull ghcr.io/coder/coder:2.37.5
```

but the workflow tags images with `scripts/image_tag.sh`, which always
emits `v<version>`. `ghcr.io/coder/coder:2.37.5` returns 404;
`ghcr.io/coder/coder:v2.37.5` is the real tag. Checked against v2.37.5,
v2.37.4, v2.38.0 and v2.29.19 on ghcr.io: only the `v`-prefixed
manifests exist.

`release.go` strips the `v` before formatting the tag
(`strings.TrimPrefix(newVersion.String(), "v")`). The old bash generator
used `image_tag.sh` directly and got it right.

## Change

Format the tag with `newVersion.String()` (keeps the `v`), with a
comment pointing at `image_tag.sh` as the source of truth.

Affected published notes (36 releases back to v2.29.19) can be fixed
with `gh release edit --notes-file`; this PR only fixes future ones.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Part of ENT-224

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-20 22:02:53 +01:00
..