1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-17 05:48:21 +00:00
node-feature-discovery/scripts/test-infra/push-image.sh
Markus Lehtonen 4899de7e59 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.
2020-09-03 17:19:10 +03:00

10 lines
213 B
Bash
Executable file

#!/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