mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-15 17:50:49 +00:00
scripts: use a reproducible version in push-image.sh
We don't have a full git repo in the gcb builds so our version/tag magic inside the makefile does not work. With this patch we get the version information from the builder environment - fortunately we can do that by simply stripping the date prefix from the _GIT_TAG variable. By stripping the date of we match what our makefile does.
This commit is contained in:
parent
8dad403a91
commit
4899de7e59
1 changed files with 6 additions and 0 deletions
|
@ -1,4 +1,10 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
# Strip 'vYYYYMMDD-' from the variable in order to get a reproducible
|
||||||
|
# version and container image tag
|
||||||
|
if [ -n "$_GIT_TAG" ]; then
|
||||||
|
export VERSION=${_GIT_TAG:10}
|
||||||
|
fi
|
||||||
|
|
||||||
make image -e
|
make image -e
|
||||||
make push -e
|
make push -e
|
||||||
|
|
Loading…
Reference in a new issue