key changes
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-10-27 17:01:42 +01:00
parent e773bca79d
commit 9cb7aae1b9
5 changed files with 15 additions and 37 deletions

View File

@@ -12,23 +12,11 @@ DEPLOYMENT_DIR=$PWD/deployment
pushd $DEPLOYMENT_DIR > /dev/null
if [ ! -f transfer-key.conf ]; then
gpg --decrypt --passphrase $GPG_PASSPHRASE --yes --batch --homedir /tmp/.gnupg --output transfer-key.conf transfer-key.conf.asc
fi
kubectl create namespace $NAMESPACE \
--dry-run=client \
-o yaml | \
kubectl -f - apply
# Create secret for transfer-key
kubectl create secret generic transfer-key \
--from-file=transfer-key.conf=transfer-key.conf \
--namespace=$NAMESPACE \
--dry-run=client \
-o yaml | \
kubectl apply -f -
cat $DEPLOYMENT_DIR/deploy-yml.tmpl | \
sed -e 's,%IMAGE%,'$IMAGE_NAME':'$IMAGE_TAG','g | \