Release boxfork
This page is for the maintainers of boxfork. It tells you how to make a release, what the release workflow does, and how to take a release back. It also tells you how the site boxfork.dev is deployed. Decision 23 gives the reasons.
In short
Section titled “In short”- A tag
vMAJOR.MINOR.PATCHonmainmakes a release. Push the tag, and .github/workflows/release.yml does all the work. - The workflow tests first. Then it pushes four images to GHCR, attests the files and the images with Sigstore, and makes the GitHub Release. Then it installs the release as a user does, and it verifies an archive and an image.
- The jobs that publish need the GitHub environments of Set up the repository.
- A dry run builds and tests the same files and images, and publishes nothing.
- Do not move or delete a tag that made a release. To correct a release, make a new patch release.
Set up the repository
Section titled “Set up the repository”Do these steps one time, before the first tag, in the settings of the repository on GitHub, under Environments. If a workflow uses an environment that does not exist, GitHub makes the environment with no rules. Thus make the two environments first.
| Environment | Deployment branches and tags | Secrets | Jobs that use it |
|---|---|---|---|
release |
Selected branches and tags: the tag rule v* only |
None. The jobs use the token of the run. | publish <image> and publish the release of release.yml |
site |
Selected branches and tags: the branch main only |
CLOUDFLARE_API_TOKEN |
deploy to boxfork.dev of deploy-site.yml |
- Put
CLOUDFLARE_API_TOKENin the environmentsiteonly. Delete the repository secret of the same name, if it exists. Then only the deploy job can read the token. - The variable
CLOUDFLARE_ACCOUNT_IDstays a variable of the repository. It is not a secret. - The workflows also have their own checks: a job that publishes runs only for a tag, and the deploy runs only on
main. The environments add a second check that a change to a workflow file on a branch cannot remove.
The version and the tag
Section titled “The version and the tag”The version has the form MAJOR.MINOR.PATCH, as Semantic Versioning gives it.
The tag is the version with a v before it, for example v0.1.0.
- Increase
PATCHfor a release with fixes only. - Increase
MINORfor a release with new features. - Increase
MAJORfor a release that changes the API, the CLI or the chart in a way that breaks a client. Before version 1.0.0,MINORcan also break a client. Say so in the release notes.
The workflow stops for a tag of a different form, for example v0.1.0-rc.1 or v0.1.
It also stops if the commit of the tag is not on main.
Make a release
Section titled “Make a release”-
Make sure that the last runs of
fast,e2eandk8s-e2eonmainpassed. -
Do a dry run on
main. On 6 December 2026, a dry run took 6 minutes:Terminal window gh workflow run release.yml --ref main -f dry_run=truegh run watch -
Read the release notes in the summary of the dry run, under the job
version and release notes. -
Set
appVersionin operator/chart/Chart.yaml to the new version, in a pull request, and merge it. The chart usesappVersionas the tag of its default images. The workflow stops for a tag with a differentappVersion. -
Make the tag on the last commit of
main, and push it:Terminal window git fetch origingit tag -a v0.1.0 -m "boxfork 0.1.0" origin/maingit push origin v0.1.0 -
Watch the run that the tag started:
gh run watch. For the first release only: GHCR makes a new package private. When the run passed, open the settings of the four packages on GHCR. Make each package public. -
Make sure that the job
install and verify the release as a user doespassed. It runs the install command of the release notes on a new runner, and it runs one sandbox. It also does the steps of Verify a release on the archive for amd64 and on the imageboxfork.
What the workflow does
Section titled “What the workflow does”The jobs before the publication run for each tag and for each dry run:
| Job | What it does |
|---|---|
version and release notes |
It reads the version from the tag and does the checks of the tag. It writes the release notes: the install command, the verify commands, the images and the commits since the last tag. |
fast, e2e |
The workflows fast.yml and e2e.yml, called as they are. testing.md tells what they prove. |
archives and checksums |
make dist with the version, and with the address of the release in RELEASE. Then SHA256SUMS, the checksums of the archives, install.sh and cloud-startup.sh. It runs make dist two times, and makes sure that the two builds give the same files. |
install on amd64, install on arm64 |
On a runner of that chip type: it checks the checksums, and it runs install.sh from standard input, as curl ... | sudo sh does, with --isolation gvisor. Then it runs one sandbox with the CLI and makes sure that the sandbox runs under gVisor. |
image boxfork, image boxfork-operator, image boxfork-helper, image boxfork-control |
It builds the image for amd64 and arm64 into a file, with the time of the commit on the files in the image. It records the digest of the image in the file. It pushes the file to a registry on the runner with the same digest, makes sure that the image has the two chip types, and runs the amd64 image. |
image <image> on arm64 |
On an arm64 runner: it pushes the same file to a registry on the runner with the same digest, and runs the arm64 image. |
The jobs of the publication run only for a tag, and only when all jobs above passed:
| Job | What it does |
|---|---|
publish <image> |
In the environment release. It pushes the image file that the job image <image> wrote to ghcr.io/mvplab-ai/<image>:<version>. It does not build again. The push keeps the digest, and the job stops if GHCR has a different digest from the digest that the job image <image> recorded. Then it attests the image and pushes the attestation to GHCR. |
publish the release |
In the environment release. It attests each file. Then it makes the GitHub Release of the tag with the files, the attestation bundle boxfork-<version>.sigstore.json and the release notes. The release becomes the latest release only if its version is the highest version of all tags. |
After the publication, one more job runs:
| Job | What it does |
|---|---|
install and verify the release as a user does |
On a new runner, it runs curl -fsSL https://github.com/mvplab-ai/boxfork/releases/download/<tag>/install.sh | sudo sh, and runs one sandbox under gVisor. Then it runs gh attestation verify with --repo, --signer-workflow and --source-ref on the archive for amd64 and on the image boxfork. It also makes sure that the archive does not verify with --source-ref refs/heads/main. |
Only the jobs of the publication have the permissions to write: contents: write for the release, packages: write for GHCR, and id-token: write and attestations: write for Sigstore.
All other jobs can only read the repository.
The address of the release is https://github.com/mvplab-ai/boxfork/releases/download/<tag>.
make dist writes it into the copies of install.sh and cloud-startup.sh in the release.
Thus the installer of a release installs the archive of the same release.
A dry run
Section titled “A dry run”A dry run is a run of the workflow by hand with dry_run on, which is the default.
A pull request that changes release.yml also starts a dry run.
A dry run does all the jobs before the publication, with the version 0.0.0-dryrun.<commit>.
It does not push an image to GHCR, it does not sign, and it does not make a release.
Thus a dry run writes nothing to the public transparency log of Sigstore.
A pull request does not run fast and e2e again in the dry run, because the pull request runs them already.
A run by hand with dry_run off on a branch stops at once. Only a tag makes a release.
If the workflow fails
Section titled “If the workflow fails”-
If a job before the publication fails, nothing was published. Fix the cause on
main. Then delete the tag and push it again on the new commit:Terminal window git push origin :refs/tags/v0.1.0git tag -d v0.1.0 -
If a job of the publication fails, run the failed jobs again:
gh run rerun <run id> --failed. A second push of the same image file gives the same digest. A second attestation of the same file is permitted. -
If
publish the releasefails after it made the release, delete the release withgh release delete v0.1.0, and run the job again. -
If
install and verify the release as a user doesfails, the release is public already. Read the log of the job. If a user cannot install the release or verify its files, take the release back as Take a release back tells. For the first release, the job can fail because the packages on GHCR are private. Make the packages public, and run the job again.
Take a release back
Section titled “Take a release back”Caution: Do not move or delete a tag after its release was published. Users, scripts and attestations refer to the tag. A different commit under the same tag breaks the trust in each release.
To take a bad release back:
-
Make the release before it the latest release again:
Terminal window gh release edit v0.1.0 --latestThe address
releases/latest/download/install.shthen installs that release. -
Mark the bad release as a pre-release, and add the reason to its notes:
gh release edit v0.1.1 --prerelease --notes-file <file>. -
Fix the cause on
main, and make a new patch release, for examplev0.1.2.
If the bad release is dangerous, also delete its files with gh release delete v0.1.1, and delete its images in the package settings of GHCR.
Keep the tag. The attestations stay in the transparency log. An attestation tells where a file came from. It does not tell that the file is good.
A user goes back to an earlier release with the installer of that release. The installer replaces the binary and keeps the settings of the service:
curl -fsSL https://github.com/mvplab-ai/boxfork/releases/download/v0.1.0/install.sh | sudo shOn Kubernetes, give the earlier tag of the images to helm upgrade, as install.md tells.
The site
Section titled “The site”.github/workflows/deploy-site.yml deploys boxfork.dev, the Worker boxfork-site.
It runs for each push to main that changes docs/, site/ or ROADMAP.md.
- The job
build the sitewrites the commit intosite/public/version.txtand runsnpm run build. The build fails on a broken link, a broken anchor or a diagram that shows as code. Thencf deploy --dry-runreads the settings of the Worker in site/cloudflare.config.ts, without credentials. - The job
deploy to boxfork.devruns in the environmentsite. First, it makes sure that the site ofmainis the site of this commit, as the list below tells. Then it runscf deploy ./distwith the secretCLOUDFLARE_API_TOKENof the environment and the variableCLOUDFLARE_ACCOUNT_ID. - Then it reads
https://boxfork.dev/version.txtuntil it shows the commit, and it makes sure that some pages answer with 200.
npm ci runs with --ignore-scripts, so no package runs a script when it installs. Only the step cf deploy gets the token.
Only a push to main of mvplab-ai/boxfork deploys, or a run by hand on main with dry_run off.
A pull request and a fork never deploy. A pull request that changes the workflow runs the job build the site only.
The site of an older commit never replaces the site of a newer commit:
- Only one run of the workflow for
mainruns at a time, in the order of the pushes. A run that waits is replaced by a newer run. A run under way is not stopped. - Just before the deploy, the job reads the last commit of
main. If a newer commit changeddocs/,site/,ROADMAP.mdor the workflow, the job deploys nothing: the run of the newer commit deploys the site. If newer commits changed other files only, the job deploys, because the site of this commit is the site ofmain.
To deploy by hand, for example after a change of the token:
gh workflow run deploy-site.yml --ref main -f dry_run=falseTo take a deploy of the site back, revert the commit on main. The workflow then deploys the site of the commit before it.
Not proven
Section titled “Not proven”- No release is published yet. The jobs of the publication and the job
install and verify the release as a user doesdid not run. A dry run cannot run them: they need a tag, and the jobs of the publication need the environmentrelease. The jobs before the publication passed in a dry run on 6 December 2026 (testing.md). - Nobody ran the commands of Verify a release on a release of boxfork.
- The deploy of the site from the workflow did not run yet, because it runs only on
mainin the environmentsite. A local test ran the step that compares the commit withmain, on seven states ofmain.