Add Gitea Actions GitOps workflow
Some checks failed
Homelab IaC GitOps Pipeline / lint (push) Failing after 1s

This commit is contained in:
Sho Ishida 2026-07-20 10:04:44 +00:00
parent be6ead2773
commit c1c6ca615f

View File

@ -0,0 +1,29 @@
name: Homelab IaC GitOps Pipeline
on:
push:
branches:
- main
jobs:
lint:
runs-on: self-hosted
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Terraform Format Check
run: |
cd terraform/workloads
/usr/local/bin/terraform fmt -check
- name: Terraform Lint
run: |
cd terraform/workloads
/usr/local/bin/tflint --init
/usr/local/bin/tflint
- name: Ansible Lint
run: |
cd ansible
ansible-lint playbooks/*.yml