From c599d68a13762dc9d1c809b703bdc8b519f9f0fa Mon Sep 17 00:00:00 2001 From: Wojciech Kocjan Date: Wed, 9 Oct 2024 17:23:00 +0000 Subject: [PATCH 1/2] feat(openbao): use current date for BuildDate --- openbao.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbao.yaml b/openbao.yaml index f4623e950f..78281e9db0 100644 --- a/openbao.yaml +++ b/openbao.yaml @@ -1,7 +1,7 @@ package: name: openbao version: 2.0.2 - epoch: 0 + epoch: 1 description: OpenBao exists to provide a software solution to manage, store, and distribute sensitive data including secrets, certificates, and keys. copyright: - license: MPL-2.0 @@ -36,7 +36,7 @@ pipeline: ldflags: | -X github.com/openbao/openbao/version.fullVersion=${{package.version}} -X github.com/openbao/openbao/version.GitCommit='$(git rev-parse HEAD)' - -X github.com/openbao/openbao/version.BuildDate='$(git show --no-show-signature -s --format=%cd --date=format:"%Y-%m-%dT%H:%M:%SZ" HEAD)' + -X github.com/openbao/openbao/version.BuildDate='$(date -u +"%Y-%m-%dT%H:%M:%SZ")' - uses: strip subpackages: From 17e599a9893a854aa04972e9696d68b8fb469ee0 Mon Sep 17 00:00:00 2001 From: Wojciech Kocjan Date: Wed, 9 Oct 2024 19:10:12 +0000 Subject: [PATCH 2/2] chore: remove strip --- openbao.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/openbao.yaml b/openbao.yaml index 78281e9db0..6e50879c2b 100644 --- a/openbao.yaml +++ b/openbao.yaml @@ -37,7 +37,6 @@ pipeline: -X github.com/openbao/openbao/version.fullVersion=${{package.version}} -X github.com/openbao/openbao/version.GitCommit='$(git rev-parse HEAD)' -X github.com/openbao/openbao/version.BuildDate='$(date -u +"%Y-%m-%dT%H:%M:%SZ")' - - uses: strip subpackages: - name: openbao-compat