feat: try to make it more simple
This commit is contained in:
parent
2bbade377b
commit
d9de3b072b
1 changed files with 15 additions and 6 deletions
|
|
@ -1,20 +1,29 @@
|
||||||
|
---
|
||||||
variables:
|
variables:
|
||||||
DEBIAN_FRONTEND: "noninteractive"
|
DEBIAN_FRONTEND: "noninteractive"
|
||||||
DOCKER_HOST: "tcp://docker:2375"
|
DOCKER_HOST: "tcp://docker:2375"
|
||||||
DOCKER_TLS_CERTDIR: ""
|
DOCKER_TLS_CERTDIR: ""
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- "docker:dind"
|
||||||
|
|
||||||
molecule:
|
molecule:
|
||||||
stage: "testing"
|
stage: "testing"
|
||||||
image: "docker:latest"
|
image: "docker:latest"
|
||||||
script:
|
script:
|
||||||
- apk add --no-cache python3 py3-pip git
|
- "apk add \
|
||||||
- pip3 install --break-system-packages --no-cache-dir ansible-core ansible-lint molecule molecule-plugins[docker]
|
--no-cache \
|
||||||
- mkdir -p ~/.ansible/roles
|
python3 \
|
||||||
- ln -s $CI_PROJECT_DIR ~/.ansible/roles/siempie.dns
|
py3-pip \
|
||||||
- ANSIBLE_ROLES_PATH=~/.ansible/roles:$CI_PROJECT_DIR molecule test
|
git"
|
||||||
|
- "pip3 install \
|
||||||
|
--break-system-packages \
|
||||||
|
--no-cache-dir \
|
||||||
|
ansible-core \
|
||||||
|
ansible-lint \
|
||||||
|
molecule \
|
||||||
|
molecule-plugins[docker]"
|
||||||
|
- "molecule test"
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
matrix:
|
||||||
- image: "debian"
|
- image: "debian"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue