1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
node-feature-discovery/scripts/test-infra/push-image.sh
Markus Lehtonen e8e3fce851 scripts: explicitly override VERSION in push-image.sh
Without using -e to override variables from the environment.
2020-09-15 11:46:48 +03:00

9 lines
293 B
Bash
Executable file

#!/bin/bash -e
# 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 $VERSION_OVERRIDE
make push $VERSION_OVERRIDE