Updating Woodpecker CI config to handle role installs
ci/woodpecker/push/woodpecker Pipeline was canceled
ci/woodpecker/push/woodpecker Pipeline was canceled
This commit is contained in:
+9
-4
@@ -3,8 +3,13 @@ when:
|
|||||||
branch: [main]
|
branch: [main]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: linter
|
- name: install-roles
|
||||||
image: python:3.14-slim
|
image: ghcr.io/ansible/community-ansible-dev-tools:latest
|
||||||
commands:
|
commands:
|
||||||
- pip install --no-cache-dir ansible-lint
|
- ansible-galaxy role install -r requirements.yml -p "$CI_WORKSPACE/roles"
|
||||||
- ansible-lint --offline
|
|
||||||
|
- name: lint-ansible
|
||||||
|
image: ghcr.io/ansible/community-ansible-dev-tools:latest
|
||||||
|
commands:
|
||||||
|
- git config --global --add safe.directory "$CI_WORKSPACE"
|
||||||
|
- ansible-lint -v --offline
|
||||||
|
|||||||
Reference in New Issue
Block a user