mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-17 05:48:21 +00:00
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.
10 lines
213 B
Bash
Executable file
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
|