mirror of
https://github.com/zalando-incubator/kube-metrics-adapter.git
synced 2025-01-03 07:40:09 +00:00
Fail on dirty and/or non-exact versions on master (#79)
* Fail on dirty and/or non-exact versions on master Signed-off-by: Alexey Ermakov <alexey.ermakov@zalando.de> * Prevent go from modifying go.mod Signed-off-by: Alexey Ermakov <alexey.ermakov@zalando.de> * Fix go.mod version Signed-off-by: Alexey Ermakov <alexey.ermakov@zalando.de> * Allow non-exact tag matches Signed-off-by: Alexey Ermakov <alexey.ermakov@zalando.de>
This commit is contained in:
aermakov-zalando
committed by
Sandor Szücs
parent
29ee953a16
commit
07c0e179b3
@ -7,6 +7,8 @@ pipeline:
|
||||
- /go/pkg/mod # pkg cache for Go modules
|
||||
- ~/.cache/go-build # Go build cache
|
||||
type: script
|
||||
env:
|
||||
GOFLAGS: "-mod=readonly"
|
||||
commands:
|
||||
- desc: test
|
||||
cmd: |
|
||||
@ -18,9 +20,11 @@ pipeline:
|
||||
cmd: |
|
||||
if [[ $CDP_TARGET_BRANCH == master && ! $CDP_PULL_REQUEST_NUMBER ]]; then
|
||||
IMAGE=registry-write.opensource.zalan.do/teapot/kube-metrics-adapter
|
||||
VERSION=$(git describe --tags --always --dirty)
|
||||
VERSION=$(git describe --tags --always)
|
||||
else
|
||||
IMAGE=registry-write.opensource.zalan.do/teapot/kube-metrics-adapter-test
|
||||
VERSION=$CDP_BUILD_VERSION
|
||||
fi
|
||||
IMAGE=$IMAGE VERSION=$VERSION make build.docker
|
||||
git diff --stat --exit-code
|
||||
IMAGE=$IMAGE VERSION=$VERSION make build.push
|
||||
|
Reference in New Issue
Block a user