32 lines
666 B
YAML
32 lines
666 B
YAML
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
|
|
echo "dummy" > .vault_pass
|
|
ansible-galaxy collection install ansible.posix
|
|
ansible-lint playbooks/*.yml
|