Skip to content
Snippets Groups Projects
Commit eee233a7 authored by Robotka István Adrián's avatar Robotka István Adrián
Browse files

add ci folder

parent 62b783e4
Branches
No related tags found
No related merge requests found
# Authority of the Ansible subgroup
# Content of the repo
- CI config for the whole subgroup
- GitLab API scripts to setup repos in the subgroup
- Template files for the playbooks
# Usage example of the CI
Example `.gitlab-ci.yml` files. Check tags under `https://git.sch.bme.hu/kszk/sysadmin/ansible/ansci/-/tags`
```yaml
include:
- project: kszk/sysadmin/ansible/ansci
ref: 0.1.0
file: /pipeline/playbook.yaml
```
```yaml
include:
- project: kszk/sysadmin/ansible/ansci
ref: 0.1.0
file: /pipeline/role.yaml
```
---
include:
- template/stages.yaml
# TODO insert editorconfig file
# include CI config from another repo
include:
- project: kszk/ci
ref: 0.1.0
file: /job/editorconfig-check.yaml
- project: kszk/ci
ref: 0.1.0
file: /job/yaml-test.yaml
ansible-lint:
stage: test
image: registry.kszk.bme.hu/baseimg/ansible
script:
- ansible-lint .
---
# Ordering jobs with stages
include:
- project: kszk/ci
ref: 0.1.0
file: /template/stages.yaml
editorconfig:
stage: test
image:
name: odannyc/eclint
entrypoint: [""]
allow_failure: true
script:
- eclint check $(git ls-files)
ansible-lint:
stage: test
image: registry.kszk.bme.hu/baseimg/ansible
script:
- ansible-lint .
yaml-lint:
stage: test
image: sdesbure/yamllint
allow_failure: true
script:
- yamllint .
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment