From d692ccd425028632117c2bb59459336939a43ba1 Mon Sep 17 00:00:00 2001 From: Haletran Date: Mon, 13 Apr 2026 23:07:32 +0200 Subject: [PATCH] Create lxc-creator.yml --- .forgejo/workflows/lxc-creator.yml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .forgejo/workflows/lxc-creator.yml diff --git a/.forgejo/workflows/lxc-creator.yml b/.forgejo/workflows/lxc-creator.yml new file mode 100644 index 0000000..399b8ee --- /dev/null +++ b/.forgejo/workflows/lxc-creator.yml @@ -0,0 +1,33 @@ +name: Lxc Creation + +on: + workflow_dispatch: + +jobs: + terraform: + runs-on: self-hosted + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Terraform + uses: hashicorp/setup-terraform@v3 + with: + terraform_version: "1.9.0" + + - name: Terraform Init + run: terraform init + working-directory: ./terrafrom + + - name: Terraform Plan + run: terraform plan + working-directory: ./terrafrom + env: + TF_VAR_pm_api_token_secret: ${{ secrets.PM_API_TOKEN_SECRET }} + + - name: Terraform Apply + if: github.ref == 'refs/heads/main' + run: terraform apply -auto-approve + working-directory: ./terrafrom + env: + TF_VAR_pm_api_token_secret: ${{ secrets.PM_API_TOKEN_SECRET }}