mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-20 02:17:05 +00:00
* docs(quickstart): fix raw URL for corporate-proxy fallback (H1) * feat(docker)!: drop :full image variant — use sibling containers on ccs-net (Q3) No AI CLIs (claude-code/gemini-cli/grok-cli/opencode) are bundled in the image. Use sibling containers attached to ccs-net instead. See docker/README.md#connect-your-app-to-cliproxy. Also removes bash from apk deps (entrypoint uses #!/bin/sh — L2). ci(docker): publish only immutable :<ver> tag pre-smoke; promote-mutable-tags job adds :latest/:MAJOR/:MINOR aliases only after smoke tests pass (H3) ci(docker): smoke-test-compose-url runs network-contract.sh against the downloaded /tmp/ccs-compose.yaml instead of re-cloning the repo (H4) ci(docker): sign published images with cosign keyless OIDC + attach provenance/SBOM via build-push-action (M8) test(docker): network-contract.sh now accepts compose-file and image-ref positional args; replaces python3 healthcheck parser with jq (L4) * chore(release): cut every main release as rc.N prerelease, manual promote flow (H2) - .releaserc.cjs: main branch now uses prerelease 'rc' channel — every semantic-release cut becomes vX.Y.Z-rc.N - add promote-release.yml: workflow_dispatch flips rc → stable via 'gh release edit --prerelease=false'; triggers docker promote-mutable-tags - add docs/release-process.md: full soak + promote procedure, rollback steps, cosign verification command - releaseNotesGenerator: add revert section, document chore hidden behaviour (L8) * fix(docker): healthcheck probes both dashboard and cliproxy ports (M1) compose.yaml healthcheck now checks :3000 and :8317 concurrently with a 4.5s internal timeout, within Docker's 5s timeout budget. Also: - docs(docker): document npm lockfile ephemeral tradeoff above install layer; note size-budget regression test as the practical safeguard (M3) - docs(docker): drop :full row from Choosing an image table; add sibling container note pointing to connect-your-app-to-cliproxy (Q3/docs) - docs(docker): remove :full docker run block; fix release-tag sentence (Q3) - docs(docker): fix raw URL in migration section (H1 parity) - docs(docker): add Volume warning — 'down -v' deletes named volumes (L13) - docs(docker): update What changes table — remove :full reference (Q3) - docs(docker): add Image Signatures and SBOM section with cosign verify and sbom download commands (M8/docs) - changelog: add Unreleased entries for rc soak, cosign signing, :full removal with migration guidance * ci(docker): assert image-size budget per platform; add compose parity + breaking-change guard (M6/L9/L12) - image-size.sh: add --platform flag; uses 'docker buildx imagetools inspect' to sum compressed layer sizes from registry manifest for linux/amd64 and linux/arm64 separately (M6) - docker-release.yml smoke-test: runs size check for both platforms - compose-parity.sh: diffs docker/compose.yaml vs docker/docker-compose.integrated.yml for image name, ports 3000/8317, volume mounts /root/.ccs and /var/log/ccs, ccs-net definition (L12) - ci.yml: add compose-parity job wired to cliproxy runner (L12) - breaking-change-guard.yml: fails PR if compose.yaml changes image name, network name, or container_name without a feat!/fix! commit (L9) * chore(ci): fix cosign shell substitution — use tr instead of bash @L expansion (L6/nit) * test(docker): fix compose-parity port regex for variable-interpolated host ports
70 lines
2.6 KiB
YAML
70 lines
2.6 KiB
YAML
name: Promote rc to Stable Release
|
|
|
|
# Manual workflow to promote a pre-release rc tag to a stable GitHub release.
|
|
#
|
|
# Flow:
|
|
# 1. Flip the GitHub release from prerelease=true to prerelease=false using
|
|
# `gh release edit --prerelease=false`.
|
|
# 2. The resulting `release: published` event (with prerelease=false) triggers
|
|
# docker-release.yml, which builds/signs the image, runs smoke tests, then
|
|
# adds the mutable :latest/:MAJOR/:MINOR Docker tags via promote-mutable-tags.
|
|
#
|
|
# Pre-conditions:
|
|
# - The rc tag must already exist as a GitHub prerelease (cut by semantic-release).
|
|
# - Smoke tests on the rc image must have passed (manual verification step).
|
|
#
|
|
# See docs/release-process.md for the full soak + promote procedure.
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
rc_tag:
|
|
description: >
|
|
Pre-release rc tag to promote, e.g. v7.80.0-rc.1.
|
|
Must already exist as a GitHub prerelease.
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
promote:
|
|
name: Promote ${{ inputs.rc_tag }} to stable
|
|
runs-on: [self-hosted, linux, x64, cliproxy]
|
|
|
|
permissions:
|
|
contents: write # required to edit GitHub releases
|
|
|
|
steps:
|
|
- name: Validate rc tag format
|
|
run: |
|
|
if [[ "${{ inputs.rc_tag }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+$ ]]; then
|
|
echo "[OK] Tag format valid: ${{ inputs.rc_tag }}"
|
|
else
|
|
echo "[X] Expected vX.Y.Z-rc.N format, got: ${{ inputs.rc_tag }}"
|
|
exit 1
|
|
fi
|
|
|
|
- name: Verify release exists and is a prerelease
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
IS_PRERELEASE=$(gh release view "${{ inputs.rc_tag }}" \
|
|
--repo "${{ github.repository }}" \
|
|
--json isPrerelease --jq '.isPrerelease')
|
|
if [[ "${IS_PRERELEASE}" != "true" ]]; then
|
|
echo "[X] Release ${{ inputs.rc_tag }} is not a prerelease (isPrerelease=${IS_PRERELEASE})"
|
|
echo " Either it was already promoted, or the tag does not exist."
|
|
exit 1
|
|
fi
|
|
echo "[OK] Release ${{ inputs.rc_tag }} is a prerelease — proceeding with promotion"
|
|
|
|
- name: Promote release to stable
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
gh release edit "${{ inputs.rc_tag }}" \
|
|
--repo "${{ github.repository }}" \
|
|
--prerelease=false \
|
|
--latest
|
|
echo "[OK] Promoted ${{ inputs.rc_tag }} to stable (prerelease=false, latest=true)"
|
|
echo "[i] docker-release.yml will now trigger to add :latest/:MAJOR/:MINOR Docker tags"
|