mirror of
https://github.com/AsgardEternal/Ubuntu-Ansible-Setup.git
synced 2024-09-28 11:44:23 -05:00
ci: lint inventory before deploys
This commit is contained in:
parent
75f16a5097
commit
e52ad6b130
6
.github/workflows/deploy-squad.yml
vendored
6
.github/workflows/deploy-squad.yml
vendored
@ -8,14 +8,14 @@ on:
|
||||
|
||||
jobs:
|
||||
|
||||
build-image:
|
||||
uses: ./.github/workflows/build-docker.yml
|
||||
lint-inventory:
|
||||
uses: ./.github/workflows/lint-inventory.yml
|
||||
secrets: inherit
|
||||
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
needs:
|
||||
- build-image
|
||||
- lint-inventory
|
||||
container:
|
||||
image: ${{ vars.DOCKER_REGISTRY_URL }}/${{ vars.ansible_container }}:latest
|
||||
credentials:
|
||||
|
27
.github/workflows/lint-inventory.yml
vendored
Normal file
27
.github/workflows/lint-inventory.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: Lint Inventory
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
build-image:
|
||||
uses: ./.github/workflows/build-docker.yml
|
||||
secrets: inherit
|
||||
|
||||
lint-inventory:
|
||||
runs-on: self-hosted
|
||||
needs:
|
||||
- build-image
|
||||
container:
|
||||
image: ${{ vars.DOCKER_REGISTRY_URL }}/${{ vars.ansible_container }}:latest
|
||||
credentials:
|
||||
username: "${{ secrets.DOCKER_REGISTRY_USER }}"
|
||||
password: "${{ secrets.DOCKER_REGISTRY_PASSWORD }}"
|
||||
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Lint Inventory
|
||||
run: |
|
||||
yamllint ./inventory.yml
|
Loading…
Reference in New Issue
Block a user