Merge pull request 'CI: use upstream ansible/toolset' (#78) from ci into master
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #78 Reviewed-by: jeltz <jeltz@noreply@auro.re>
This commit is contained in:
commit
b3f25e2c8b
5 changed files with 5 additions and 33 deletions
|
@ -3,9 +3,7 @@ skip_list:
|
||||||
- load-failure
|
- load-failure
|
||||||
- document-start
|
- document-start
|
||||||
- meta-no-info
|
- meta-no-info
|
||||||
|
- ignore-errors
|
||||||
warn_list:
|
|
||||||
- experimental # all rules tagged as experimental
|
|
||||||
|
|
||||||
exclude_paths:
|
exclude_paths:
|
||||||
- group_vars/all/vault.yml
|
- group_vars/all/vault.yml
|
||||||
|
|
|
@ -5,8 +5,7 @@ name: check
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: ansible and yaml linting
|
- name: ansible and yaml linting
|
||||||
pull: never
|
image: quay.io/ansible/toolset:3.5.0
|
||||||
image: aurore-ansible-lint-image
|
|
||||||
commands:
|
commands:
|
||||||
- ansible-lint
|
- ansible-lint
|
||||||
...
|
...
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
FROM python:3.9-alpine
|
|
||||||
LABEL description="Aurore's docker image for ansible-lint"
|
|
||||||
|
|
||||||
RUN apk add --no-cache gcc musl-dev python3-dev libffi-dev openssl-dev cargo
|
|
||||||
RUN pip install --no-cache-dir "yamllint>=1.26.0,<2.0"
|
|
||||||
RUN pip install --no-cache-dir "ansible-lint>=5.0.0"
|
|
||||||
RUN pip install --no-cache-dir "ansible>=2.10,<2.11"
|
|
|
@ -1,18 +0,0 @@
|
||||||
# Ansible-lint image
|
|
||||||
|
|
||||||
In order to build this image when a new version comes out, you need to
|
|
||||||
1. ssh into the `drone.adm.auro.re` server
|
|
||||||
2. git pull this repo to the lastest version
|
|
||||||
3. optionally make the changes if it has not been done yet
|
|
||||||
4. `sudo docker build -t aurore-ansible-lint-image docker-ansible-lint/`
|
|
||||||
5. ???
|
|
||||||
6. enjoy
|
|
||||||
|
|
||||||
You can verify that the image was correclty built by running
|
|
||||||
```
|
|
||||||
# list the images present
|
|
||||||
sudo docker image ls
|
|
||||||
|
|
||||||
# run your image with an interactive shell
|
|
||||||
sudo docker run -it --rm aurore-ansible-lint-image /bin/sh
|
|
||||||
```
|
|
Loading…
Reference in a new issue