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
18 changes: 18 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,21 @@ remote_skills/
# Exclude build/temp files
*.log
.DS_Store

# Release builds include only the pinned OpenShell SDK inputs, never host state.
.git
**/.git
.env
.env.*
*.pem
*.key
checkouts/*
!checkouts/openshell/
checkouts/openshell/*
!checkouts/openshell/python/
!checkouts/openshell/proto/
!checkouts/openshell/tasks/
checkouts/openshell/tasks/*
!checkouts/openshell/tasks/scripts/
checkouts/openshell/tasks/scripts/*
!checkouts/openshell/tasks/scripts/generate_python_proto.py
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release deployment checks
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
release-config:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: python -m unittest discover -s tests -p test_release_images.py -v
- run: |
for script in deploy/scripts/*.sh; do bash -n "$script"; done
proxy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: deploy/golang-reverse-proxy
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: deploy/golang-reverse-proxy/go.mod
cache: false
- run: go test ./...
127 changes: 127 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
name: Container image

on:
push:
branches: [main]
tags: ["20[0-9][0-9].[0-9][0-9].[0-9][0-9]*"]
pull_request:
branches: [main]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: container-${{ github.ref }}
cancel-in-progress: false

jobs:
image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
include:
- variant: dashboard
port: 5000
context: .
dockerfile: deploy/dashboard/Dockerfile
image: ghcr.io/jctanner/breadboard-dashboard
- variant: fullsend-dashboard
port: 5000
context: .
dockerfile: deploy/fullsend-dashboard/Dockerfile
image: ghcr.io/jctanner/breadboard-fullsend-dashboard
- variant: golang-reverse-proxy
port: 80
context: deploy/golang-reverse-proxy
dockerfile: Dockerfile
image: ghcr.io/jctanner/breadboard-golang-reverse-proxy
steps:
- uses: actions/checkout@v4
- name: Fetch the pinned OpenShell SDK source
if: matrix.variant == 'dashboard'
uses: actions/checkout@v4
with:
repository: NVIDIA/openshell
ref: b2ea81822bb5263679ed00ff0fbe8c08577abab5
path: checkouts/openshell
- name: Validate release tag
if: startsWith(github.ref, 'refs/tags/')
run: python3 scripts/release_version.py "$GITHUB_REF_NAME"
- name: Publication policy regression tests
run: python3 -m unittest discover -s scripts -p test_publish_image.py -v
- uses: docker/setup-buildx-action@v3
- id: meta
uses: docker/metadata-action@v5
with:
images: ${{ matrix.image }}
flavor: latest=false
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=sha,format=long
type=ref,event=tag
type=ref,event=pr
- name: Build once for smoke testing and publishing
uses: docker/build-push-action@v6
with:
context: ${{ matrix.context }}
file: ${{ matrix.context }}/${{ matrix.dockerfile }}
platforms: linux/amd64
load: true
tags: release-smoke:local
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,scope=${{ matrix.variant }}
cache-to: type=gha,mode=max,scope=${{ matrix.variant }}
- name: Smoke test
env:
VARIANT: ${{ matrix.variant }}
CONTAINER_PORT: ${{ matrix.port }}
run: |
extra=()
if [[ "$VARIANT" == dashboard ]]; then
extra=(-e ANTHROPIC_VERTEX_PROJECT_ID=synthetic-ci-project)
fi
docker run -d --name release-smoke -p "127.0.0.1:8080:$CONTAINER_PORT" "${extra[@]}" release-smoke:local
for _ in $(seq 1 30); do
if curl --max-time 2 -fsS http://127.0.0.1:8080/healthz > /dev/null; then
exit 0
fi
sleep 2
done
exit 1
- name: Container logs and cleanup
if: always()
run: |
docker logs release-smoke || true
docker rm -f release-smoke || true
- if: github.event_name != 'pull_request' && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || startsWith(github.ref, 'refs/tags/'))
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish the tested image
id: publish
if: github.event_name != 'pull_request' && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || startsWith(github.ref, 'refs/tags/'))
env:
TAGS: ${{ steps.meta.outputs.tags }}
IMAGE_REPOSITORY: ${{ matrix.image }}
run: bash scripts/publish_image.sh
- name: Record published image
if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v4
with:
name: published-image-${{ matrix.variant }}
path: image.txt
retention-days: 30

release:
if: startsWith(github.ref, 'refs/tags/')
needs: image
permissions:
contents: write
uses: ./.github/workflows/release.yml
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: GitHub release

on:
workflow_call:

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
pattern: published-image-*
path: published-images
- name: Release only after the image was smoke-tested and published
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
const images = fs.readdirSync('published-images').sort().map(directory =>
fs.readFileSync(`published-images/${directory}/image.txt`, 'utf8').trim());
if (!images.length || images.some(image => !/^ghcr\.io\/[^\s]+@sha256:[a-f0-9]{64}$/.test(image))) {
throw new Error('Published image digests are missing or invalid');
}
const tag = context.ref.replace('refs/tags/', '');
if (!context.ref.startsWith('refs/tags/')) {
throw new Error('Releases require a tag');
}
const {owner, repo} = context.repo;
try {
await github.rest.repos.getReleaseByTag({owner, repo, tag});
throw new Error('Release already exists; releases are immutable');
} catch (error) {
if (error.status !== 404) throw error;
}
const {data: notes} = await github.rest.repos.generateReleaseNotes({owner, repo, tag_name: tag});
await github.rest.repos.createRelease({
owner, repo, tag_name: tag, name: tag, draft: false, prerelease: false,
body: `${notes.body}\n\nSource commit: ${context.sha}\n\nContainers:\n${images.map(image => `- \`${image}\``).join("\n")}`,
make_latest: 'true'
});
4 changes: 4 additions & 0 deletions .ledger/PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -1031,3 +1031,7 @@ Other existing work remains under `plans/`, `tasks/`, `bugs/`, and `decisions/`.
- [Other Claude subagent information channels](tasks/done/claude-subagent-shared-information-analysis.md): complete; six new controls, file-change injection, host/model distinction and dormant nested-memory flag documented.

- [Claude skill variable expansion](tasks/done/claude-skill-variable-expansion-analysis.md): complete; full prompt-placeholder catalog, field/stage differences, nine controls and forty-one exact symbols documented.

## CC-43

- [Service releases and container images](tasks/current/cc-43-releases.md)
31 changes: 31 additions & 0 deletions .ledger/notes/cc-43-external-release-proposals.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# CC-43: Release proposals for repositories owned outside jctanner

No writes, branches, tags or releases were made in these repositories.

## vokramd/markov

Preserve existing SemVer: v0.1.0 is a published GitHub release and v0.2.0 is
an existing git tag. The checkout has a GoReleaser release-candidate workflow
triggered by v* tags with archive, package and OCI candidate validation. Do
not replace it with CalVer or duplicate CC-71 work.

## vokramd/markovd

Go API and React frontend; Dockerfile builds both and serves HTTP on 8080;
/health is the smoke endpoint. No tags, releases or workflow files were
observed. Coordinate its release version contract with Markov/CC-71 before
adding anything: prefer retaining its owner's chosen scheme, potentially
v-prefixed SemVer aligned with Markov, rather than imposing CalVer.
Suggested CI: Go tests and UI build, then Linux amd64 image build and /health
smoke test. Publish tested images and digest-backed GitHub releases only
after explicit authorization to change vokramd repositories.

## opendatahub-io/observatory

Python FastAPI and React; multi-stage Dockerfile, port 8000, /healthz.
No tags/releases or workflow files observed. Proposed CI: backend tests on
SQLite, frontend build/tests, container smoke test and GHCR publication.
Determine release policy with repository owners before adopting CalVer.
The current integration Dockerfile copies org-pulse-config.json; confirm
this is committed and contains no deployment-specific credentials before
publishing. External repository writes require separate approval.
Loading
Loading