From 01e50c33189c0ff8242fee249c1c09ed3453fef1 Mon Sep 17 00:00:00 2001 From: Bruno Miguel Date: Fri, 8 Sep 2023 21:16:55 +0100 Subject: [PATCH 1/3] added berg --- berg.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 berg.yaml diff --git a/berg.yaml b/berg.yaml new file mode 100644 index 00000000000..444b36db21b --- /dev/null +++ b/berg.yaml @@ -0,0 +1,33 @@ +package: + name: berg + version: 0.3.5 + epoch: 0 + description: "CLI Tool for Codeberg similar to gh and glab" + copyright: + - license: AGPL-3.0-only + +environment: + contents: + packages: + - wolfi-base + - build-base + - openssl-dev + - rust + +pipeline: + - uses: git-checkout + with: + repository: https://codeberg.org/RobWalt/codeberg-cli/ + tag: v${{package.version}} + expected-commit: b1850444bef36a16bb9512e73802d7ca2151a0bf + + - name: Configure and build + runs: | + mkdir -p "${{targets.destdir}}"/usr/bin + cargo build --all-features + install -m755 target/debug/berg "${{targets.destdir}}"/usr/bin/ + + - uses: strip + +update: + enabled: false #hosted on codeberg and not present at release-monitoring.org. but #1566 is open to provide support for it in the future. From c1cde788796e23b282195ab90af2b1bdd525858f Mon Sep 17 00:00:00 2001 From: Bruno Miguel Date: Fri, 8 Sep 2023 21:26:36 +0000 Subject: [PATCH 2/3] Update berg.yaml Co-authored-by: Ajay Kemparaj Signed-off-by: Bruno Miguel --- berg.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/berg.yaml b/berg.yaml index 444b36db21b..ee507c54a7b 100644 --- a/berg.yaml +++ b/berg.yaml @@ -25,7 +25,7 @@ pipeline: runs: | mkdir -p "${{targets.destdir}}"/usr/bin cargo build --all-features - install -m755 target/debug/berg "${{targets.destdir}}"/usr/bin/ + install -m755 target/release/berg "${{targets.destdir}}"/usr/bin/ - uses: strip From 93a9193fb43d51254d681b68baafb041fbf283cc Mon Sep 17 00:00:00 2001 From: Bruno Miguel Date: Fri, 8 Sep 2023 22:35:02 +0100 Subject: [PATCH 3/3] updated build flags --- berg.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/berg.yaml b/berg.yaml index ee507c54a7b..b7684f5ba8b 100644 --- a/berg.yaml +++ b/berg.yaml @@ -24,7 +24,7 @@ pipeline: - name: Configure and build runs: | mkdir -p "${{targets.destdir}}"/usr/bin - cargo build --all-features + cargo build --all-features --release install -m755 target/release/berg "${{targets.destdir}}"/usr/bin/ - uses: strip