Refactor workflow files to remove unnecessary triggers and paths
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
name: Validate CI/CD Actions
|
name: Validate CI/CD Actions
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -7,11 +6,9 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- .github/actions/**
|
- .github/actions/**
|
||||||
- .github/workflows/actions-*.yml
|
- .github/workflows/actions-*.yml
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-cicd-actions:
|
test-cicd-actions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
name: Ansible Validate Playbook on Pull Request
|
name: Ansible Validate Playbook on Pull Request
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- ansible/playbook_*.yml
|
- ansible/playbook_*.yml
|
||||||
- .github/workflows/ansible-apply-playbook.yml
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ansible-apply:
|
ansible-apply:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
name: Ansible Validate On Pull Request
|
name: Ansible Validate On Pull Request
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
@@ -10,12 +9,6 @@ on:
|
|||||||
- opened
|
- opened
|
||||||
- synchronize
|
- synchronize
|
||||||
- reopened
|
- reopened
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- .github/workflows/ansible-validate-on-pr.yml
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ansible-validate:
|
ansible-validate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
name: Ansible Validate Playbook on Pull Request
|
name: Ansible Validate Playbook on Pull Request
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
@@ -10,11 +9,6 @@ on:
|
|||||||
- opened
|
- opened
|
||||||
- synchronize
|
- synchronize
|
||||||
- reopened
|
- reopened
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- .github/workflows/ansible-validate-playbook-on-pr.yml
|
|
||||||
jobs:
|
jobs:
|
||||||
ansible-apply:
|
ansible-apply:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -2,12 +2,10 @@ name: Weekly Reconciliation
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 2 * * 0"
|
- cron: "0 3 * * 0"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ansible-apply:
|
ansible-apply:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ on:
|
|||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- "terraform/iac/**"
|
- "terraform/iac/**"
|
||||||
- .github/workflows/terraform-iac-apply.yml
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
terraform-apply:
|
terraform-apply:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -10,12 +10,6 @@ on:
|
|||||||
- opened
|
- opened
|
||||||
- synchronize
|
- synchronize
|
||||||
- reopened
|
- reopened
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- .github/workflows/terraform-iac-validate-on-pr.yml
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
terraform-validate:
|
terraform-validate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
name: Terraform K8S Apps apply
|
name: Terraform K8S Apps apply
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 2 * * 0"
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- "terraform/k8sapps/**"
|
- "terraform/k8sapps/**"
|
||||||
- .github/workflows/terraform-microk8s-apply.yml
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
terraform-apply:
|
terraform-apply:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -10,12 +10,6 @@ on:
|
|||||||
- opened
|
- opened
|
||||||
- synchronize
|
- synchronize
|
||||||
- reopened
|
- reopened
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- .github/workflows/terraform-microk8s-validate.yml
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
terraform-validate:
|
terraform-validate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user