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: explicitly override VERSION in push-image.sh

Without using -e to override variables from the environment.
This commit is contained in:
Markus Lehtonen 2020-09-15 11:46:48 +03:00
parent f0ef38b84e
commit e8e3fce851

View file

@ -1,10 +1,9 @@
#!/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
# Override VERSION if _GIT_TAG is specified. Strip 10 first characters
# ('vYYYYMMDD-') from _GIT_TAG in order to get a reproducible version and
# container image tag
VERSION_OVERRIDE=${_GIT_TAG+VERSION=${_GIT_TAG:10}}
make image -e
make push -e
make image $VERSION_OVERRIDE
make push $VERSION_OVERRIDE