diff --git a/.github/workflows/docker-stable.yml b/.github/workflows/docker-stable.yml index 636ba03..4205ed9 100644 --- a/.github/workflows/docker-stable.yml +++ b/.github/workflows/docker-stable.yml @@ -1,3 +1,5 @@ +# Every release already tags `stable`. Run this only to point `stable` at a +# different release, such as rolling back from a bad one. name: Mark Release as Stable on: workflow_dispatch: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 545594d..6c3c507 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -126,8 +126,11 @@ jobs: # Attach an SPDX SBOM generated from the built image, next to the # provenance attestation the action already adds. sbom: true + # `stable` follows `latest`. To point it at an older release, run + # docker-stable.yml. tags: | socketdev/cli:latest + socketdev/cli:stable socketdev/cli:${{ env.VERSION }} build-args: | CLI_VERSION=${{ env.VERSION }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 219d64e..165e42c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ - Manifest file links in PR comments and reports pick the source host only from `--scm`. The fallback that guessed GitHub, GitLab, or Bitbucket from the Socket diff URL never produced a link and has been removed. +- Each release now also tags `socketdev/cli:stable`, so `stable` and `latest` + both point at the newest release. Previously `stable` moved only when someone + promoted a release by hand. Pin `socketdev/cli:` for reproducible CI + runs. ### Fixed diff --git a/docs/ci-cd.md b/docs/ci-cd.md index 3282778..def5547 100644 --- a/docs/ci-cd.md +++ b/docs/ci-cd.md @@ -564,8 +564,9 @@ console output and Dashboard association but does not post a PR comment. `socketdev/cli` on Docker Hub packages the CLI with the toolchains reachability analysis runs on: Node.js, Go, Java, .NET, Rust, Ruby, pyenv, and PyPy on -`linux/amd64`. The toolchains are most of the image's size. Tags are published -per release (`socketdev/cli:`), plus `latest` and `stable`. +`linux/amd64`. The toolchains are most of the image's size. Each release is +published as `socketdev/cli:`, and `latest` and `stable` both point at +the newest release. Pin a version tag for reproducible CI runs. ```sh docker run --rm \