Ubuntu-Ansible-Setup/.github/workflows/lint-inventory.yml

29 lines
663 B
YAML
Raw Normal View History

2023-01-31 18:39:12 -06:00
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:
2023-02-03 15:18:32 -06:00
- name: checkout repo
uses: actions/checkout@v3
2023-01-31 18:39:12 -06:00
- name: Lint Inventory
run: |
yamllint -d "{extends: default, rules: {trailing-spaces: {level: warning}}}" ./inventory.yml