diff --git a/contrib/collection.sh b/contrib/collection.sh new file mode 100755 index 000000000..74948a92f --- /dev/null +++ b/contrib/collection.sh @@ -0,0 +1,9 @@ +#!/bin/bash -eux +# Install collection from source assuming dependencies are present. +# Run in SemaphoreUI this bash script can install Kubespray from the repo +NAMESPACE=kubernetes_sigs +COLLECTION=kubespray +MY_VER=$(grep '^version:' galaxy.yml|cut -d: -f2|sed 's/ //') + +ansible-galaxy collection build --force --output-path . +ansible-galaxy collection install --offline --force $NAMESPACE-$COLLECTION-$MY_VER.tar.gz