Compare commits

..

1 Commits

Author SHA1 Message Date
8bc40a9281 feat: add build job
Some checks failed
Build / build (pull_request) Failing after 2m6s
- add build job that runs `make plan`
- add deploy job that runs `make apply`
- ensure make-plan also runs init target
- enable provider caching
- enable creating client.crt/client.key
- trap EXIT to cleanup temp directory
2025-10-17 13:24:13 +11:00
2 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,26 @@
---
name: Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: almalinux-8
container:
image: git.unkin.net/unkin/almalinux9-actionsdind:latest
options: --privileged
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run Terraform Plan
env:
VAULT_ROLEID: ${{ secrets.TERRAFORM_INCUS_VAULT_ROLEID }}
run: |
make apply

View File

@ -37,7 +37,7 @@ plan: init
@$(call vault_env) && \
terragrunt run --all --parallelism 8 --non-interactive plan
apply:
apply: init
@$(call vault_env) && \
terragrunt run --all --parallelism 5 --non-interactive apply