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
3 changes: 1 addition & 2 deletions .bcr/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Bazel Central Registry

When the ruleset is released, we want it to be published to the
Bazel Central Registry automatically:
<https://registry.bazel.build>
Bazel Central Registry: <https://registry.bazel.build>

This folder contains configuration files to automate the publish step.
See <https://github.com/bazel-contrib/publish-to-bcr/blob/main/templates/README.md>
Expand Down
4 changes: 2 additions & 2 deletions .bcr/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fixedReleaser:
login: aiuto
email: aiuto@google.com
login: tonyaiuto
email: tony@aiuto.dev
24 changes: 14 additions & 10 deletions .bcr/metadata.template.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{
"homepage": "https://github.com/bazelbuild/rules_pkg",
"maintainers": [
{
"email": "aiuto@datadoghq.com",
"name": "Tony Aiuto"
}
],
"repository": ["github:bazelbuild/rules_pkg"],
"versions": [],
"yanked_versions": {}
"homepage": "https://github.com/bazelbuild/rules_pkg",
"maintainers": [
{
"email": "tony@aiuto.dev",
"name": "Tony Aiuto",
"github": "aiuto",
"github_user_id": "3044252"
}
],
"repository": [
"github:bazelbuild/rules_pkg"
],
"versions": [],
"yanked_versions": {}
}
35 changes: 18 additions & 17 deletions .bcr/presubmit.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
build_targets: &build_targets
- '@rules_pkg//...'
# Re-enable those targets when toolchain registration is supported.
- '-@rules_pkg//toolchains/...'
- '-@rules_pkg//pkg:make_rpm'

platforms:
centos7_java11_devtoolset10:
build_targets: *build_targets
debian10:
build_targets: *build_targets
macos:
build_targets: *build_targets
ubuntu2204:
build_targets: *build_targets
windows:
build_targets: *build_targets
matrix:
platform:
- debian10
- ubuntu2004
- macos
- macos_arm64
- windows
bazel:
- 8.x
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@rules_pkg//...'
- '-@rules_pkg//toolchains/...'
- '-@rules_pkg//pkg:make_rpm'
2 changes: 1 addition & 1 deletion .bcr/source.template.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"integrity": "**leave this alone**",
"integrity": "",
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/rules_pkg-{TAG}.tar.gz"
}
31 changes: 31 additions & 0 deletions .github/workflows/publish_to_bcr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Publish release to BCR"

on:
workflow_dispatch:
inputs:
version:
required: true
type: "string"

permissions:
id-token: write
attestations: write
contents: write

jobs:
publish:
name: "Publish to BCR"

permissions:
attestations: write
contents: write
id-token: write

uses: "bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.1.0"
with:
tag_name: "${{ inputs.version }}"
tag_prefix: ""
registry_fork: "bazel-contrib/bazel-central-registry"
draft: false
secrets:
publish_token: "${{ secrets.BCR_PUBLISH_TOKEN }}"