2019-01-11 22:41:39 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2019-05-18 23:44:23 +00:00
|
|
|
name: linting
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: ansible-latest
|
|
|
|
pull: always
|
|
|
|
image: python:3.7
|
|
|
|
commands:
|
|
|
|
- pip install ansible ansible-later~=0.2.0 -qq
|
|
|
|
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
|
|
|
|
- ansible-later -c ~/policy/config.yml
|
|
|
|
environment:
|
|
|
|
PY_COLORS: 1
|
|
|
|
depends_on:
|
|
|
|
- clone
|
|
|
|
|
|
|
|
- name: ansible-master
|
|
|
|
pull: always
|
|
|
|
image: python:3.7
|
|
|
|
commands:
|
|
|
|
- "pip install git+https://github.com/ansible/ansible.git@devel ansible-later~=0.2.0 -qq"
|
|
|
|
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
|
|
|
|
- ansible-later -c ~/policy/config.yml
|
|
|
|
environment:
|
|
|
|
PY_COLORS: 1
|
|
|
|
depends_on:
|
|
|
|
- clone
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- "refs/tags/**"
|
|
|
|
- "refs/pull/**"
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: notifications
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
clone:
|
|
|
|
disable: true
|
2019-01-11 22:41:39 +00:00
|
|
|
|
|
|
|
steps:
|
2019-05-18 23:44:23 +00:00
|
|
|
- name: matrix
|
|
|
|
image: plugins/matrix
|
|
|
|
settings:
|
|
|
|
homeserver: https://matrix.rknet.org
|
|
|
|
password:
|
|
|
|
from_secret: matrix_password
|
|
|
|
roomid: MtidqQXWWAtQcByBhH:rknet.org
|
|
|
|
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
|
|
|
|
username:
|
|
|
|
from_secret: matrix_username
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- "refs/tags/**"
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|
|
|
|
|
|
|
|
...
|