Actualiser .gitea/workflows/validate.yml
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 17s
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 17s
This commit is contained in:
@@ -1,15 +1,21 @@
|
||||
name: terraform validation
|
||||
name: 'Terraform Apply'
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
types: [opened, reopened, edited, synchronize]
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
name: 'Terraform'
|
||||
name: 'Terraform Apply'
|
||||
runs-on: ubuntu-latest
|
||||
environment: production
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -36,4 +42,10 @@ jobs:
|
||||
|
||||
- name: Terraform Plan
|
||||
id: plan
|
||||
run: terraform plan
|
||||
run: terraform plan -var="cloudflare_api_token=${{ secrets.CLOUDFLARE_API_TOKEN }}"
|
||||
|
||||
- name: Terraform Apply
|
||||
run: terraform apply -var="cloudflare_api_token=${{ secrets.CLOUDFLARE_API_TOKEN }}" --auto-approve --input=false
|
||||
|
||||
- name: Terraform Output
|
||||
run: terraform output
|
Reference in New Issue
Block a user