Skip to content

Publish to my custom Bazel registry #2

Publish to my custom Bazel registry

Publish to my custom Bazel registry #2

# Based on the instructions at https://github.com/bazel-contrib/publish-to-bcr
name: Publish to my custom Bazel registry
on:
workflow_call:
inputs:
tag_name:
required: true
type: string
workflow_dispatch:
inputs:
tag_name:
description: "Tag to publish"
required: true
type: string
jobs:
publish:
uses: "bazel-contrib/publish-to-bcr/.github/workflows/[email protected]"
with:
tag_name: ${{ inputs.tag_name }}
# This is the registry for which the PR will be open.
# For this module I am not using BCR, since this is not worth publishing
# to BCR.
registry: filmil/bazel-registry
# This is the fork of `registry`. It can be the same repo.
registry_fork: filmil/bazel-registry
attest: false
permissions:
contents: write
id-token: write
attestations: write
secrets:
publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }}