* Remove checks for docs using exact tags Instead use a more generic documentation for installing kubespray as a collection from git. * Check that we upgraded galaxy.yml to next version This is only intented to check for human error. The version in galaxy should be the next (which does not mean the same if we're on master or a release branch). * Set collection version to KUBESPRAY_NEXT_VERSION
13 lines
361 B
Bash
Executable File
13 lines
361 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
version_from_galaxy=$(grep "^version:" galaxy.yml | awk '{print $2}')
|
|
|
|
# TODO: compute the next expected version somehow
|
|
if [[ $KUBESPRAY_VERSION == "v${version_from_galaxy}" ]]
|
|
then
|
|
echo "Please update galaxy.yml version to match the next KUBESPRAY_VERSION."
|
|
echo "Be sure to remove the \"v\" to adhere to semantic versioning"
|
|
exit 1
|
|
fi
|