Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/docker-stable.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:<version>` for reproducible CI
runs.

### Fixed

Expand Down
5 changes: 3 additions & 2 deletions docs/ci-cd.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:<version>`), plus `latest` and `stable`.
`linux/amd64`. The toolchains are most of the image's size. Each release is
published as `socketdev/cli:<version>`, and `latest` and `stable` both point at
the newest release. Pin a version tag for reproducible CI runs.

```sh
docker run --rm \
Expand Down