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

27 lines
649 B
YAML
Raw Normal View History

2024-08-22 21:44:44 +02:00
name: ansible-lint
on: [push, pull_request]
jobs:
ansible-lint:
steps:
- name: Checkout code
uses: actions/checkout@v3
2024-08-22 21:48:29 +02:00
- name: Debug
run: echo $${SSHKEY}
- name: write ssh-key
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
run: echo $${VAULTPASS} > ./vault-pass
- name: run ansible-lint
run: ansible-lint --force-color --format pep8 --show-relpath
uses: docker://registry.mgrote.net/ansible-devspace:latest
2024-08-22 21:45:25 +02:00
# SSHKEY + VAULTPASS sind als Secrets auf Repo-Ebene angelegt