1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +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:
Markus Lehtonen 2020-09-03 17:00:10 +03:00
parent 8dad403a91
commit 4899de7e59

View file

@ -1,4 +1,10 @@
#!/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 push -e