exoscale / exoscale-csi-driver

Kubernetes CSI driver for Exoscale BlockStorage
Apache License 2.0
17 stars 1 forks source link

goreleaser: set correct ldflags #29

Closed sauterp closed 5 months ago

sauterp commented 5 months ago

Description

Previous releases created with goreleaser didn't have the correct buildinfo set

❯ docker run exoscale/csi-driver -version
{DriverVersion:dirty GitCommit: BuildDate: GoVersion:go1.22.2 Compiler:gc Platform:linux/amd64}

Builds done with make aren't affected.

This PR fixes this.

Checklist

(For exoscale contributors)

Testing

❯ goreleaser release --skip-publish --skip-sign --clean --skip-validate

❯ docker run exoscale/csi-driver -version
{DriverVersion:0.29.5 GitCommit:047b98c BuildDate: GoVersion:go1.22.2 Compiler:gc Platform:linux/amd64}⏎                                                                    

❯ ./dist/exoscale-csi-driver_linux_amd64_v1/exoscale-csi-driver -version
{DriverVersion:0.29.5 GitCommit:047b98c BuildDate: GoVersion:go1.22.2 Compiler:gc Platform:linux/amd64}⏎