2019-01-12 12:47:52 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: ansible-latest
|
2019-01-10 22:42:37 +00:00
|
|
|
image: python:2.7
|
2019-01-12 12:47:52 +00:00
|
|
|
pull: always
|
2019-01-10 22:42:37 +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 18:13:45 +00:00
|
|
|
depends_on:
|
|
|
|
- clone
|
2019-01-10 22:42:37 +00:00
|
|
|
|
2019-01-12 12:47:52 +00:00
|
|
|
- name: ansible-master
|
2019-01-10 22:42:37 +00:00
|
|
|
image: python:2.7
|
2019-01-12 12:47:52 +00:00
|
|
|
pull: always
|
2019-01-10 22:42:37 +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 18:13:45 +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
|