Actualiser .gitea/workflows/validate.yml
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 11s
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 11s
This commit is contained in:
@@ -1,15 +1,21 @@
|
|||||||
name: terraform validation
|
name: 'Terraform Apply'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, reopened, edited, synchronize]
|
types: [opened, reopened, edited, synchronize]
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate:
|
validate:
|
||||||
name: 'Terraform'
|
name: 'Terraform Apply'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
environment: production
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -27,13 +33,17 @@ jobs:
|
|||||||
- name: Terraform Init
|
- name: Terraform Init
|
||||||
id: init
|
id: init
|
||||||
run: terraform init
|
run: terraform init
|
||||||
# working-directory: examples
|
|
||||||
|
|
||||||
- name: Terraform Validate
|
- name: Terraform Validate
|
||||||
id: validate
|
id: validate
|
||||||
run: terraform validate
|
run: terraform validate
|
||||||
# working-directory: examples
|
|
||||||
|
|
||||||
- name: Terraform Plan
|
- name: Terraform Plan
|
||||||
id: 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
|
Reference in New Issue
Block a user