linux-config/.gitlab-ci.yml

36 lines
803 B
YAML
Raw Normal View History

2021-10-22 11:45:20 +00:00
---
stages:
- dnf_systems
- apt_systems
Run Workstation playbook on fedora:
stage: dnf_systems
2021-10-30 07:38:09 +00:00
image: fedora:latest
2021-10-22 11:45:20 +00:00
script:
- dnf install -y ansible python3-pip
- pip3 install -r ci-requirements.txt
- mkdir /tmp/artifacts
2021-10-30 07:18:46 +00:00
- bash play_workstation.sh
2021-10-22 11:45:20 +00:00
- cp /tmp/artifacts/workstation-*.xml report.xml
- ls /tmp/artifacts
artifacts:
when: always
reports:
junit: report.xml
Run Workstation playbook on ubuntu:
stage: apt_systems
2021-10-30 07:38:09 +00:00
image: ubuntu:latest
2021-10-22 11:45:20 +00:00
script:
- apt-get update
- apt-get install -y ansible python3-pip python3-apt
- pip3 install -r ci-requirements.txt
- mkdir /tmp/artifacts
2021-10-30 07:18:46 +00:00
- bash play_workstation.sh
2021-10-22 11:45:20 +00:00
- mv /tmp/artifacts/workstation-*.xml report.xml
- ls /tmp/artifacts
artifacts:
when: always
reports:
junit: report.xml