2019-01-12 12:52:20 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: ansible-latest
|
2019-01-09 21:49:46 +00:00
|
|
|
image: python:2.7
|
2019-01-12 12:52:20 +00:00
|
|
|
pull: always
|
2019-01-09 21:49:46 +00:00
|
|
|
commands:
|
|
|
|
- pip install ansible ansible-later -q
|
|
|
|
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
|
|
|
|
- git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini
|
2019-02-04 19:33:10 +00:00
|
|
|
depends_on:
|
|
|
|
- clone
|
2019-01-09 21:49:46 +00:00
|
|
|
|
2019-01-12 12:52:20 +00:00
|
|
|
- name: ansible-master
|
2019-01-09 21:49:46 +00:00
|
|
|
image: python:2.7
|
2019-01-12 12:52:20 +00:00
|
|
|
pull: always
|
2019-01-09 21:49:46 +00:00
|
|
|
commands:
|
|
|
|
- pip install ansible ansible-later -q
|
|
|
|
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
|
|
|
|
- git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini
|
2019-02-04 19:33:10 +00:00
|
|
|
depends_on:
|
|
|
|
- clone
|
|
|
|
|
|
|
|
- name: notify
|
|
|
|
image: plugins/matrix
|
|
|
|
settings:
|
|
|
|
homeserver: https://matrix.rknet.org
|
|
|
|
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
|
|
|
|
password:
|
|
|
|
from_secret: matrix_password
|
|
|
|
depends_on:
|
|
|
|
- ansible-latest
|
|
|
|
- ansible-master
|
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|