feat: added ansible-lint
This commit is contained in:
@@ -1,16 +1,14 @@
|
|||||||
name: Build and Deploy Infrastructure
|
name: Build & Deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [main]
|
||||||
- main
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches: [main]
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
terraform:
|
infrastructure:
|
||||||
name: Deploy Infrastructure
|
name: Build Infrastructure
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -53,4 +51,18 @@ jobs:
|
|||||||
- name: Terraform Apply
|
- name: Terraform Apply
|
||||||
if: ${{ (steps.check_changes.outputs.changes == 'true') && (github.ref == 'refs/heads/main') }}
|
if: ${{ (steps.check_changes.outputs.changes == 'true') && (github.ref == 'refs/heads/main') }}
|
||||||
run: terraform apply -auto-approve tfplan
|
run: terraform apply -auto-approve tfplan
|
||||||
working-directory: ./terraform
|
working-directory: ./terraform
|
||||||
|
|
||||||
|
build:
|
||||||
|
name: Deploy Application
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout to Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Lint Playbooks
|
||||||
|
uses: ansible/ansible-lint@main
|
||||||
|
with:
|
||||||
|
setup_python: true
|
||||||
|
working_directory: ./playbooks
|
||||||
|
requirements_file: ../requirements.txt
|
||||||
Reference in New Issue
Block a user