Upgrade Hauler to v1.2.1 and add version to build
Some checks failed
Build PR in OBS / Build PR in OBS (pull_request_target) Failing after 3h13m47s

This commit is contained in:
Danial Bekhit 2025-03-14 17:47:47 -04:00
parent 389f19f7b9
commit f98a7fa390
2 changed files with 4 additions and 5 deletions

View File

@ -4,7 +4,7 @@
<param name="versionformat">@PARENT_TAG@</param> <param name="versionformat">@PARENT_TAG@</param>
<param name="scm">git</param> <param name="scm">git</param>
<param name="exclude">.get</param> <param name="exclude">.get</param>
<param name="revision">v1.0.7</param> <param name="revision">v1.2.1</param>
<param name="versionrewrite-pattern">v(.*)</param> <param name="versionrewrite-pattern">v(.*)</param>
<param name="changesgenerate">enable</param> <param name="changesgenerate">enable</param>
</service> </service>

View File

@ -18,7 +18,7 @@
%define project github.com/hauler-dev/hauler %define project github.com/hauler-dev/hauler
Name: hauler Name: hauler
Version: 1.0.7 Version: 1.2.1
Release: 0 Release: 0
Summary: Airgap Swiss Army Knife Summary: Airgap Swiss Army Knife
License: Apache-2.0 License: Apache-2.0
@ -38,10 +38,9 @@ BuildRequires: cosign
tar -xf %{SOURCE1} tar -xf %{SOURCE1}
mkdir cmd/hauler/binaries MODULE=hauler.dev/go/hauler
cp `which cosign` cmd/hauler/binaries/cosign-linux-%{go_arch}
go build -mod=vendor -buildmode=pie -o hauler ./cmd/hauler go build -mod=vendor -buildmode=pie -o hauler -ldflags "-X $MODULE/pkg/version.gitVersion=v%{version}" ./cmd/hauler
%install %install