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:
parent
f0ef38b84e
commit
e8e3fce851
1 changed files with 6 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue