Skip to content

Commit 9d976e7

Browse files
authored
Tag stable on every release (#456)
`stable` only moved when someone ran docker-stable.yml by hand, and it had not been run since January 2025, so the tag pointed at a CLI about ten months old. The release build now tags `stable` alongside `latest` and the version tag. docker-stable.yml stays as a manual way to point `stable` at a different release, such as rolling back. Bumps to 2.12.2.
1 parent 61cff79 commit 9d976e7

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎.github/workflows/docker-stable.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Every release already tags `stable`. Run this only to point `stable` at a
2+
# different release, such as rolling back from a bad one.
13
name: Mark Release as Stable
24
on:
35
workflow_dispatch:

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,11 @@ jobs:
126126
# Attach an SPDX SBOM generated from the built image, next to the
127127
# provenance attestation the action already adds.
128128
sbom: true
129+
# `stable` follows `latest`. To point it at an older release, run
130+
# docker-stable.yml.
129131
tags: |
130132
socketdev/cli:latest
133+
socketdev/cli:stable
131134
socketdev/cli:${{ env.VERSION }}
132135
build-args: |
133136
CLI_VERSION=${{ env.VERSION }}

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
- Manifest file links in PR comments and reports pick the source host only from
1313
`--scm`. The fallback that guessed GitHub, GitLab, or Bitbucket from the Socket
1414
diff URL never produced a link and has been removed.
15+
- Each release now also tags `socketdev/cli:stable`, so `stable` and `latest`
16+
both point at the newest release. Previously `stable` moved only when someone
17+
promoted a release by hand. Pin `socketdev/cli:<version>` for reproducible CI
18+
runs.
1519

1620
### Fixed
1721

‎docs/ci-cd.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,9 @@ console output and Dashboard association but does not post a PR comment.
564564

565565
`socketdev/cli` on Docker Hub packages the CLI with the toolchains reachability
566566
analysis runs on: Node.js, Go, Java, .NET, Rust, Ruby, pyenv, and PyPy on
567-
`linux/amd64`. The toolchains are most of the image's size. Tags are published
568-
per release (`socketdev/cli:<version>`), plus `latest` and `stable`.
567+
`linux/amd64`. The toolchains are most of the image's size. Each release is
568+
published as `socketdev/cli:<version>`, and `latest` and `stable` both point at
569+
the newest release. Pin a version tag for reproducible CI runs.
569570

570571
```sh
571572
docker run --rm \

0 commit comments

Comments
 (0)