Add publish to BCR

This commit is contained in:
ArthurSonzogni
2025-04-26 02:38:32 +02:00
parent 8e055a5a61
commit 2a5d7646da
9 changed files with 109 additions and 0 deletions

28
.github/workflows/publish_to_bcr.yaml vendored Normal file
View File

@@ -0,0 +1,28 @@
on:
# Run the publish workflow after a successful release.
workflow_call:
inputs:
tag_name:
required: true
type: string
# Allow manual triggering of the workflow.
workflow_dispatch:
inputs:
tag_name:
required: true
type: string
jobs:
publish:
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@[version]
with:
tag_name: ${{ inputs.tag_name }}
# GitHub repository which is a fork of the upstream where the Pull Request will be opened.
registry_fork: ArthurSonzogni/bazel-central-registry
permissions:
attestations: write
contents: write
id-token: write
secrets:
publish_token: ${{ secrets.PUBLISH_TOKEN }}