Actualiser .gitea/workflows/validate.yml
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 11s

This commit is contained in:
2025-08-05 12:56:39 +02:00
parent 4ed2d44f58
commit 9c75a19f9a

View File

@@ -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
@@ -27,13 +33,17 @@ jobs:
- name: Terraform Init
id: init
run: terraform init
# working-directory: examples
- name: Terraform Validate
id: validate
run: terraform validate
# working-directory: examples
- name: Terraform Plan
id: plan
run: terraform plan
run: terraform plan -var="aws_api_token=${{ secrets.AWS_API_TOKEN }}"
- name: Terraform Apply
run: terraform apply -var="aws_api_token=${{ secrets.AWS_API_TOKEN }}" --auto-approve --input=false
- name: Terraform Output
run: terraform output