From 4d2e9eeb6c25f7c0e9cce53ad3ea218643a3cc30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= <6217436+danigar@users.noreply.github.com> Date: Tue, 14 Jan 2025 12:50:52 +0100 Subject: [PATCH] feat: add bcr config to automatize publishing new releases to bcr --- .bcr/metadata.template.json | 25 +++++++++++++++++++++++++ .bcr/presubmit.yaml | 18 ++++++++++++++++++ .bcr/source.template.json | 5 +++++ 3 files changed, 48 insertions(+) create mode 100644 .bcr/metadata.template.json create mode 100644 .bcr/presubmit.yaml create mode 100644 .bcr/source.template.json diff --git a/.bcr/metadata.template.json b/.bcr/metadata.template.json new file mode 100644 index 0000000..b20cd3b --- /dev/null +++ b/.bcr/metadata.template.json @@ -0,0 +1,25 @@ +{ + "homepage": "https://github.com/masmovil/masorange_rules_helm", + "maintainers": [ + { + "email": "daniel@etereo.io", + "github": "danigar", + "name": "Daniel Garcia" + }, + { + "email": "pablo.moncada@masmovil.com", + "name": "Pablo Moncada" + }, + { + "email": "carlos.gamez@masmovil.com", + "name": "Carlos Gamez" + } + ], + "repository": [ + "github:masmovil/masorange_rules_helm" + ], + "versions": [ + "1.5.0" + ], + "yanked_versions": {} +} diff --git a/.bcr/presubmit.yaml b/.bcr/presubmit.yaml new file mode 100644 index 0000000..c04c533 --- /dev/null +++ b/.bcr/presubmit.yaml @@ -0,0 +1,18 @@ +matrix: + module_path: examples + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + bazel: + - 8.x + - 7.x + - 6.x +tasks: + verify_targets: + run_test_module: + name: Build examples module + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: ['//...'] diff --git a/.bcr/source.template.json b/.bcr/source.template.json new file mode 100644 index 0000000..f6d5dc3 --- /dev/null +++ b/.bcr/source.template.json @@ -0,0 +1,5 @@ +{ + "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/masorange_rules_helm-{TAG}.tar.gz", + "integrity": "", + "strip_prefix": "{REPO}-{VERSION}" +}