terraform apply #1
							
								
								
									
										44
									
								
								.gitea/workflows/terraform-apply.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								.gitea/workflows/terraform-apply.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,44 @@ | ||||
| name: Gitea Actions Demo | ||||
| run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 | ||||
|  | ||||
| on: | ||||
|   push: | ||||
|     branches: | ||||
|       - master | ||||
|  | ||||
| jobs: | ||||
|   terraform: | ||||
|     name: "Terraform Apply" | ||||
|     runs-on: ubuntu-latest | ||||
|  | ||||
|     permissions: | ||||
|       contents: read | ||||
|       pull-requests: write | ||||
|  | ||||
|     steps: | ||||
|       - name: Checkout repository | ||||
|         uses: actions/checkout@v4 | ||||
|  | ||||
|       - name: Set up Terraform | ||||
|         uses: hashicorp/setup-terraform@v2 | ||||
|         with: | ||||
|           terraform_version: 1.6.6 | ||||
|  | ||||
|       - name: Inject sensitive secrets | ||||
|         working-directory: terraform | ||||
|         run: | | ||||
|           echo 'proxmox_password = "${{ secrets.PROXMOX_PASSWORD }}"' >> terraform.tfvars | ||||
|  | ||||
|       - name: Terraform Init | ||||
|         working-directory: terraform | ||||
|         run: terraform init | ||||
|  | ||||
|  | ||||
|       - name: Terraform Plan | ||||
|         working-directory: terraform | ||||
|         run: terraform plan  | ||||
|  | ||||
|       - name: Terraform Plan | ||||
|         working-directory: terraform | ||||
|         run: terraform apply  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user