mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
10 lines
415 B
Bash
Executable File
10 lines
415 B
Bash
Executable File
#!/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
|