-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
32 lines (29 loc) · 870 Bytes
/
Copy path.gitlab-ci.yml
File metadata and controls
32 lines (29 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
variables:
DEBIAN_FRONTEND: noninteractive
molecule:
image: python:3.13
script:
- apt-get update -qq
- apt-get -y -qq install yamllint docker.io
- mkdir -p /etc/docker
- echo '{"features":{"buildkit":true},"exec-opts":["native.cgroupdriver=systemd"]}' > /etc/docker/daemon.json
- service docker restart || true
- python -m pip install --upgrade pip
- pip3 install ansible molecule molecule-plugins[docker] docker
- cd $CI_PROJECT_DIR
- molecule test
rules:
- if: $CI_COMMIT_REF_NAME == "master"
parallel:
matrix:
- image: "enterpriselinux"
tag: "latest"
galaxy:
image: python:3.13
script:
- apt-get update -qq
- apt-get -y -qq install ansible-core
- ansible-galaxy role import --api-key ${GALAXY_API_KEY} robertdebock ${CI_PROJECT_NAME}
rules:
- if: $CI_COMMIT_TAG != null