Add Gitea Actions GitOps workflow
Some checks failed
Homelab IaC GitOps Pipeline / lint (push) Failing after 1s
Some checks failed
Homelab IaC GitOps Pipeline / lint (push) Failing after 1s
This commit is contained in:
parent
be6ead2773
commit
c1c6ca615f
29
.gitea/workflows/gitops.yaml
Normal file
29
.gitea/workflows/gitops.yaml
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user