From 65f33c3ef0e2fb0fdb201efa19197775fd984836 Mon Sep 17 00:00:00 2001 From: Bas Date: Fri, 14 Nov 2025 15:45:40 +0100 Subject: [PATCH] Install the clone as collection in SemaphoreUI if airgapped. (#12660) Signed-off-by: Bas Meijer --- contrib/collection.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 contrib/collection.sh 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