mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
Install the clone as collection in SemaphoreUI if airgapped. (#12660)
Signed-off-by: Bas Meijer <bas.meijer@enexis.nl>
This commit is contained in:
9
contrib/collection.sh
Executable file
9
contrib/collection.sh
Executable file
@@ -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
|
||||||
Reference in New Issue
Block a user