Improved workflows and actions

This commit is contained in:
2024-09-29 18:01:42 +02:00
parent 9ae5a6446b
commit 360269fa0b
15 changed files with 312 additions and 224 deletions
+35
View File
@@ -0,0 +1,35 @@
name: Terraform IAC Apply
on:
schedule:
- cron: "0 1 * * 0"
push:
branches:
- main
paths:
- "terraform/iac/**"
jobs:
terraform-apply:
runs-on: ubuntu-latest
steps:
- name: Setup environment
uses: ./.github/actions/setup-env
- name: Setup Terraform Environment
uses: ./.github/actions/setup-terraform-env
- name: Terraform Init
env:
VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }}
run: |
cd terraform/iac
sectool exec terraform init
- name: Terraform Apply
env:
VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }}
run: |
cd terraform/iac
sectool exec terraform apply --auto-approve