transfer key to secret
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-10-27 13:52:11 +01:00
parent 6b6e5d969b
commit 92ddbcdf4d
4 changed files with 19 additions and 19 deletions

View File

@@ -12,11 +12,23 @@ 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 | \