mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-17 05:48:21 +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
|
#!/bin/bash -e
|
||||||
|
|
||||||
# Strip 'vYYYYMMDD-' from the variable in order to get a reproducible
|
# Override VERSION if _GIT_TAG is specified. Strip 10 first characters
|
||||||
# version and container image tag
|
# ('vYYYYMMDD-') from _GIT_TAG in order to get a reproducible version and
|
||||||
if [ -n "$_GIT_TAG" ]; then
|
# container image tag
|
||||||
export VERSION=${_GIT_TAG:10}
|
VERSION_OVERRIDE=${_GIT_TAG+VERSION=${_GIT_TAG:10}}
|
||||||
fi
|
|
||||||
|
|
||||||
make image -e
|
make image $VERSION_OVERRIDE
|
||||||
make push -e
|
make push $VERSION_OVERRIDE
|
||||||
|
|
Loading…
Add table
Reference in a new issue