Update to golang:1.19

This commit is contained in:
s3lph 2022-10-14 02:19:41 +02:00
parent d92c418d6f
commit 6a7837bfc6
2 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
---
image: golang:1.18
image: golang:1.19
before_script:
- export PDE_FULL_VERSION=$(git describe --tags --dirty | sed -re s/^v//)
- export PDE_VERSION=$(echo $PDE_FULL_VERSION | cut -d- -f1)

View file

@ -2,11 +2,11 @@
PDE_VERSION=$$(git describe --tags --dirty | sed -re s/^v// | cut -d- -f1)
PDE_REVISION=$$(git describe --tags --dirty | cut -d- -f2-)
LD_VERSION=-X github.com/prometheus/common/version.Version=$(PDE_VERSION)
LD_REVISION=-X github.com/prometheus/common/version.Revision=$(PDE_REVISION)
LD_BRANCH=-X github.com/prometheus/common/version.Branch=$$(git branch | grep '*' | cut -d ' ' -f 2-)
LD_USER=-X github.com/prometheus/common/version.BuildUser=$$(whoami)@$$(hostname -f)
LD_DATE=-X github.com/prometheus/common/version.BuildDate=$$(date --iso-8601=seconds)
LD_VERSION=-X 'github.com/prometheus/common/version.Version=$(PDE_VERSION)'
LD_REVISION=-X 'github.com/prometheus/common/version.Revision=$(PDE_REVISION)'
LD_BRANCH=-X 'github.com/prometheus/common/version.Branch=$$(git branch | grep '*' | cut -d ' ' -f 2-)'
LD_USER=-X 'github.com/prometheus/common/version.BuildUser=$$(whoami)@$$(hostname -f)'
LD_DATE=-X 'github.com/prometheus/common/version.BuildDate=$$(date --iso-8601=seconds)'
LDFLAGS=-s $(LD_VERSION) $(LD_REVISION) $(LD_BRANCH) $(LD_USER) $(LD_DATE)
prometheus-dnssec-exporter: