continuous deploy - service account and gitea workflow
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
set -e
|
||||
echo "Executing infra deploy."
|
||||
|
||||
kubectl kustomize deploy/infra | kubectl apply -f -
|
||||
kubectl kustomize deploy/infra | kubectl -n cloud-limbosolutions-com apply -f -
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user