continuous deploy - service account and gitea workflow

This commit is contained in:
Márcio Fernandes
2026-03-20 13:36:48 +00:00
parent 23c4b440ee
commit 249b1fb567
22 changed files with 275 additions and 106 deletions

View File

@@ -4,12 +4,32 @@ echo "Executing app deploy."
kubectl kustomize deploy/app | kubectl apply -f -
load_env_file() {
local file="$1"
helm repo add nextcloud https://nextcloud.github.io/helm/ 2>/dev/null || true
helm repo update nextcloud
if [ -f "$file" ]; then
echo "Loading environment variables from: $file"
set -a
. "$file"
set +a
else
echo "Skipping missing env file: $file"
fi
}
helm repo add nextcloud https://nextcloud.github.io/helm/ --force-update
load_env_file "deploy/app/.env.d/nextcloud-mariadb.env"
load_env_file "deploy/app/.env.d/nextcloud.env"
helm upgrade --install nextcloud nextcloud/nextcloud \
--values ./deploy/helm/values.yaml \
--values ./deploy/helm/values.local.yaml \
--values ./deploy/app/helm-values.yaml \
--set externalDatabase.user=${MARIADB_USER} \
--set externalDatabase.password=${MARIADB_PASSWORD} \
--set externalDatabase.database=${MARIADB_DATABASE} \
--set nextcloud.host=${NEXTCLOUD_HOST} \
--set nextcloud.username=${NEXTCLOUD_USERNAME} \
--set nextcloud.password=${NEXTCLOUD_PASSWORD} \
--namespace cloud-limbosolutions-com