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
37 changes: 21 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
jobs:
release:
runs-on: ubuntu-24.04
timeout-minutes: 60
timeout-minutes: 10
permissions:
contents: write
packages: write
Expand All @@ -39,20 +39,25 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
file: deploy/Dockerfile
target: hub
push: true
tags: ${{ env.HUB_IMAGE }}:${{ steps.version.outputs.version }}
- uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
file: deploy/Dockerfile
target: sidecar
push: true
tags: ${{ env.SIDECAR_IMAGE }}:${{ steps.version.outputs.version }}
- id: sha
run: echo "sha=$(git rev-parse "$GITHUB_REF_NAME^{commit}")" >> "$GITHUB_OUTPUT"
- env:
SHA: ${{ steps.sha.outputs.sha }}
VERSION: ${{ steps.version.outputs.version }}
run: |
channel=latest
if [[ "$VERSION" == 0.* || "$VERSION" == *-* ]]; then
channel=rc
fi
for image in "$HUB_IMAGE" "$SIDECAR_IMAGE"; do
if ! docker buildx imagetools inspect "$image:$SHA" > /dev/null; then
echo "::error::$image images for $SHA are not published yet; wait for the publish workflow on main"
exit 1
fi
done
for image in "$HUB_IMAGE" "$SIDECAR_IMAGE"; do
docker buildx imagetools create -t "$image:$VERSION" -t "$image:$channel" "$image:$SHA"
done
- env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.version.outputs.version }}
Expand All @@ -64,7 +69,7 @@ jobs:
- \`$HUB_IMAGE:$VERSION\`
- \`$SIDECAR_IMAGE:$VERSION\`

[docs/SELF_HOST.md](https://github.com/$GITHUB_REPOSITORY/blob/$GITHUB_REF_NAME/docs/SELF_HOST.md) covers self-hosting; set the hub and sidecar `image:` to these refs instead of building.
Choose a channel with \`BUILDER_VERSION\`: \`$VERSION\` pins this release, \`rc\` follows the newest release candidate, \`latest\` the newest stable release and \`main\` every merge. [docs/SELF_HOST.md](https://github.com/$GITHUB_REPOSITORY/blob/$GITHUB_REF_NAME/docs/SELF_HOST.md) covers self-hosting.
EOF
prerelease=()
if [[ "$VERSION" == 0.* || "$VERSION" == *-* ]]; then
Expand Down
7 changes: 4 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,10 @@ change follows, whether a person or a coding agent writes it.

Maintainers bump `version` in the root, `apps/hub`, `apps/web`,
`packages/client` and `packages/schemas` package.json files, run
`bun install`, and merge. Then `git tag -s vX.Y.Z && git push origin vX.Y.Z`
publishes the hub and sidecar images and the GitHub release; a 0.x version or
one with a `-` suffix is marked a pre-release.
`bun install`, and merge. Once the publish workflow for that commit on main has
finished, `git tag -s vX.Y.Z && git push origin vX.Y.Z` retags its hub and
sidecar images as `X.Y.Z` and publishes the GitHub release; a 0.x version or
one with a `-` suffix is a pre-release tagged `rc`, any other is `latest`.

## Security

Expand Down