mirror of
https://github.com/AsgardEternal/Ubuntu-Ansible-Setup.git
synced 2024-09-28 16:24:23 -05:00
29 lines
713 B
YAML
29 lines
713 B
YAML
name: Lint Inventory
|
|
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
|
|
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:
|
|
- name: checkout repo
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Lint Inventory
|
|
run: |
|
|
yamllint -d "{extends: default, rules: {trailing-spaces: {level: warning}, comments: { min-spaces-from-content: 1}}}" ./inventory.yml
|
|
|