From d93d1810f168b9bbc6250cdfe307e33c78bf5334 Mon Sep 17 00:00:00 2001 From: kasun Date: Sun, 29 Nov 2026 00:25:10 +0100 Subject: [PATCH] chore(monitoring): load stack config from private repo Keeps the encrypted config versioned in git instead of copying it into a base64 CI secret after every change. Monitoring goes first as a trial before the other stacks move. --- .gitea/workflows/05-deploy-monitoring.yaml | 20 ++++++++++++++++---- .gitignore | 1 + 05-monitoring/Pulumi.yaml | 1 + 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/05-deploy-monitoring.yaml b/.gitea/workflows/05-deploy-monitoring.yaml index f2e1384..1cbe430 100644 --- a/.gitea/workflows/05-deploy-monitoring.yaml +++ b/.gitea/workflows/05-deploy-monitoring.yaml @@ -29,8 +29,14 @@ jobs: with: node-version: "24" - - name: Restore Stack Config - run: echo "${{ secrets.MONITORING_PULUMI_DEV_YAML }}" | base64 -d > 05-monitoring/Pulumi.dev.yaml + - name: Checkout Stack Config + uses: actions/checkout@v4 + with: + repository: kasun/homelab-pulumi-config + ref: main + token: ${{ secrets.PULUMI_CONFIG_REPO_TOKEN }} + path: .pulumi-config + persist-credentials: false - name: Install Dependencies run: npm install @@ -59,8 +65,14 @@ jobs: with: node-version: "24" - - name: Restore Stack Config - run: echo "${{ secrets.MONITORING_PULUMI_DEV_YAML }}" | base64 -d > 05-monitoring/Pulumi.dev.yaml + - name: Checkout Stack Config + uses: actions/checkout@v4 + with: + repository: kasun/homelab-pulumi-config + ref: main + token: ${{ secrets.PULUMI_CONFIG_REPO_TOKEN }} + path: .pulumi-config + persist-credentials: false - name: Install Dependencies run: npm install diff --git a/.gitignore b/.gitignore index 20ec77e..d4f5da2 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ sdks/ .env .env.* !.env.example +.pulumi-config diff --git a/05-monitoring/Pulumi.yaml b/05-monitoring/Pulumi.yaml index 15bd0ac..c374448 100644 --- a/05-monitoring/Pulumi.yaml +++ b/05-monitoring/Pulumi.yaml @@ -4,3 +4,4 @@ runtime: name: nodejs options: packagemanager: npm +stackConfigDir: ../.pulumi-config/05-monitoring