From 9f6560f8b67b393b15d2128ddac3ae8451dfafd6 Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 28 Jan 2026 13:45:15 -0700 Subject: [PATCH] new deploy for gitea runner --- .gitea/workflows/deploy.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..12204a6 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,35 @@ +name: PVE2 Infrastructure Deploy +on: + push: + branches: + - main # Only deploy when we push to main + +jobs: + terraform: + runs-on: pve2:host # This targets the runner we just installed + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Terraform Init + run: | + cd terraform + terraform init + + - name: Terraform Plan + run: | + cd terraform + terraform plan + env: + PM_API_TOKEN_ID: ${{ secrets.PM_API_TOKEN_ID }} + PM_API_TOKEN_SECRET: ${{ secrets.PM_API_TOKEN_SECRET }} + PM_API_URL: "https://localhost:8006/api2/json" + + - name: Terraform Apply + run: | + cd terraform + terraform apply -auto-approve + env: + PM_API_TOKEN_ID: ${{ secrets.PM_API_TOKEN_ID }} + PM_API_TOKEN_SECRET: ${{ secrets.PM_API_TOKEN_SECRET }} + PM_API_URL: "https://localhost:8006/api2/json" \ No newline at end of file