homeserver/.gitea/workflows/ansible-lint.yaml

29 lines
692 B
YAML
Raw Normal View History

2024-08-22 21:44:44 +02:00
name: ansible-lint
on: [push, pull_request]
jobs:
ansible-lint:
2024-08-22 21:50:45 +02:00
runs-on: ubuntu-latest
2024-08-22 21:44:44 +02:00
steps:
- name: Checkout code
uses: actions/checkout@v3
2024-08-22 21:48:29 +02:00
- name: write ssh-key
2024-08-22 21:54:21 +02:00
run: echo ${SSHKEY} > ./id_ed25519
2024-08-22 21:44:44 +02:00
2024-08-22 21:48:29 +02:00
- name: set ssh-key permissions
run: chmod 0400 ./id_ed25519
2024-08-22 21:44:44 +02:00
2024-08-22 21:48:29 +02:00
- name: write vault-pass
2024-08-22 21:54:21 +02:00
run: echo ${VAULTPASS} > ./vault-pass
2024-08-22 21:48:29 +02:00
2024-08-22 21:53:21 +02:00
- name: Debug
2024-08-22 21:54:21 +02:00
run: cat ./vault-pass
2024-08-22 21:53:21 +02:00
2024-08-22 21:48:29 +02:00
- name: run ansible-lint
uses: docker://registry.mgrote.net/ansible-devspace:latest
2024-08-22 21:51:15 +02:00
with:
args: ansible-lint --force-color --format pep8 --show-relpath
2024-08-22 21:45:25 +02:00
# SSHKEY + VAULTPASS sind als Secrets auf Repo-Ebene angelegt