fix: label of the runner
This commit is contained in:
parent
d692ccd425
commit
b243eef182
33
.forgejo/workfkows/lxc-creator.yml
Normal file
33
.forgejo/workfkows/lxc-creator.yml
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
name: Lxc Creation
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
terraform:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
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 }}
|
||||||
Loading…
Reference in a new issue