CI: deactivate for now

Until the test images / infra is updated.
parent 38daa15d
Pipeline #4773 failed
# This file is a template, and might need editing before it works on your project.
# Official docker image.
image: docker:latest
# image: quay.io/sheogorath/build-ah-engine
services:
- docker:dind
f32:
stage: test
tags:
- docker
variables:
GIT_STRATEGY: clone
distro: fedora
distro_version: 32
DOCKER_HOST: "tcp://docker:2375"
before_script:
- 'docker pull "quay.io/sheogorath/ansible-ci-images:${distro}-${distro_version}"'
- 'sed -i "s/True/False/" ansible.cfg'
script:
- container_id=$(mktemp)
- 'docker run --detach --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --volume="${PWD}":/etc/ansible/:ro "quay.io/sheogorath/ansible-ci-images:${distro}-${distro_version}" > "${container_id}"'
- 'docker exec "$(cat ${container_id})" env ANSIBLE_FORCE_COLOR=1 ansible-playbook -v /etc/ansible/full.yml --syntax-check'
- 'docker exec "$(cat ${container_id})" env ANSIBLE_FORCE_COLOR=1 ansible-playbook -v /etc/ansible/full.yml'
- docker exec "$(cat ${container_id})" env ANSIBLE_FORCE_COLOR=1 ansible-playbook -v /etc/ansible/full.yml | tee ansible.log
- >
grep -q 'changed=0.*failed=0' ansible.log
&& (echo 'Idempotence test: pass' && exit 0)
|| (echo 'Idempotence test: fail' && exit 1)
- 'docker rm -f "$(cat ${container_id})"'
f33:
stage: test
tags:
- docker
variables:
GIT_STRATEGY: clone
distro: fedora
distro_version: 33
DOCKER_HOST: "tcp://docker:2375"
before_script:
- 'docker pull "quay.io/sheogorath/ansible-ci-images:${distro}-${distro_version}"'
- 'sed -i "s/True/False/" ansible.cfg'
script:
- container_id=$(mktemp)
- 'docker run --detach --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --volume="${PWD}":/etc/ansible/:ro "quay.io/sheogorath/ansible-ci-images:${distro}-${distro_version}" > "${container_id}"'
- 'docker exec "$(cat ${container_id})" env ANSIBLE_FORCE_COLOR=1 ansible-playbook -v /etc/ansible/full.yml --syntax-check'
- 'docker exec "$(cat ${container_id})" env ANSIBLE_FORCE_COLOR=1 ansible-playbook -v /etc/ansible/full.yml'
- docker exec "$(cat ${container_id})" env ANSIBLE_FORCE_COLOR=1 ansible-playbook -v /etc/ansible/full.yml | tee ansible.log
- >
grep -q 'changed=0.*failed=0' ansible.log
&& (echo 'Idempotence test: pass' && exit 0)
|| (echo 'Idempotence test: fail' && exit 1)
- 'docker rm -f "$(cat ${container_id})"'
# f33:
# stage: test
# tags:
# - podman
# variables:
# GIT_STRATEGY: clone
# distro: fedora
# distro_version: 33
# before_script:
# - 'podman pull "docker.io/library/${distro}-${distro_version}"'
# - 'sed -i "s/^become_ask_pass = .*/become_ask_pass = False/" ansible.cfg'
# script:
# - container_id=$(mktemp)
# - 'podman run --detach --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --volume="${PWD}":/etc/ansible/:ro "quay.io/sheogorath/ansible-ci-images:${distro}-${distro_version}" > "${container_id}"'
# - 'podman exec "$(cat ${container_id})" env ANSIBLE_FORCE_COLOR=1 ansible-playbook -v /etc/ansible/full.yml --syntax-check'
# - 'podman exec "$(cat ${container_id})" env ANSIBLE_FORCE_COLOR=1 ansible-playbook -v /etc/ansible/full.yml'
# - podman exec "$(cat ${container_id})" env ANSIBLE_FORCE_COLOR=1 ansible-playbook -v /etc/ansible/full.yml | tee ansible.log
# - >
# grep -q 'changed=0.*failed=0' ansible.log
# && (echo 'Idempotence test: pass' && exit 0)
# || (echo 'Idempotence test: fail' && exit 1)
# - 'podman rm -f "$(cat ${container_id})"'
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment