Commit d9de3b07 authored by Simon Cornet's avatar Simon Cornet
Browse files

feat: try to make it more simple

parent 2bbade37
Loading
Loading
Loading
Loading
Loading
+15 −6
Original line number Diff line number Diff line
---
variables:
  DEBIAN_FRONTEND: "noninteractive"
  DOCKER_HOST: "tcp://docker:2375"
  DOCKER_TLS_CERTDIR: ""

services:
  - docker:dind
  - "docker:dind"

molecule:
  stage: "testing"
  image: "docker:latest"
  script:
    - apk add --no-cache python3 py3-pip git
    - pip3 install --break-system-packages --no-cache-dir ansible-core ansible-lint molecule molecule-plugins[docker]
    - mkdir -p ~/.ansible/roles
    - ln -s $CI_PROJECT_DIR ~/.ansible/roles/siempie.dns
    - ANSIBLE_ROLES_PATH=~/.ansible/roles:$CI_PROJECT_DIR molecule test
    - "apk add \
       --no-cache \
       python3 \
       py3-pip \
       git"
    - "pip3 install \
       --break-system-packages \
       --no-cache-dir \
       ansible-core \
       ansible-lint \
       molecule \
       molecule-plugins[docker]"
    - "molecule test"
  parallel:
    matrix:
      - image: "debian"