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
17 changes: 17 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,31 @@ jobs:
with:
client-id: ${{ vars.RELEASE_APP_CLIENT_ID }}
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: |
gufo
toolboxes
permission-actions: read
permission-contents: write
permission-issues: write
permission-pull-requests: write

- name: Maintain release pull request or publish merged release
id: release-please
uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
with:
token: ${{ steps.app-token.outputs.token }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json

- name: Request stable Toolboxes images
if: ${{ steps.release-please.outputs.release_created == 'true' }}
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
RELEASE_TAG: ${{ steps.release-please.outputs.tag_name }}
shell: bash
run: |
set -euo pipefail
jq -n --arg tag "$RELEASE_TAG" \
'{event_type: "gufo-release", client_payload: {tag: $tag}}' \
| gh api --method POST repos/gufo-org/toolboxes/dispatches --input -
6 changes: 6 additions & 0 deletions docs/RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,9 @@ Official artifacts build the `release` package from a `vX.Y.Z` tag and report
`gufo version X.Y.Z (<revision>)`. Both package outputs retain the exact flake
revision; only the explicitly selected release output reads the semantic version
from `version.txt`.

After Release Please creates a GitHub Release, the same workflow sends its exact
`vX.Y.Z` tag to the Toolboxes repository. Toolboxes builds the release package
from that tag and publishes OCI images tagged `X.Y.Z`, `X.Y` and `latest`.
Rolling Toolboxes images remain separate: they follow Gufo `main` and use `edge`
and `sha-<revision>` tags.
Loading