2019-01-18 13:52:23 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: ansible-latest
|
|
|
|
image: python:2.7
|
|
|
|
pull: always
|
|
|
|
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-01-21 23:14:48 +00:00
|
|
|
depends_on:
|
|
|
|
- clone
|
2019-01-18 13:52:23 +00:00
|
|
|
|
|
|
|
- name: ansible-master
|
|
|
|
image: python:2.7
|
|
|
|
pull: always
|
|
|
|
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-01-21 23:14:48 +00:00
|
|
|
depends_on:
|
|
|
|
- clone
|
2019-01-21 23:01:08 +00:00
|
|
|
|
2019-01-21 22:53:15 +00:00
|
|
|
- name: notify
|
|
|
|
image: plugins/matrix
|
|
|
|
settings:
|
|
|
|
homeserver: https://matrix.rknet.org
|
2019-01-21 22:54:34 +00:00
|
|
|
roomid: MtidqQXWWAtQcByBhH:rknet.org
|
2019-01-22 11:52:18 +00:00
|
|
|
template: "Status: **_{{ build.status }}_**<br/> Build: {{ repo.Owner }}/{{ repo.Name }}#{{ truncate build.commit 8 }}] ([Link]({{ build.link }})) by {{ build.author }}<br/> Branch: {{ build.branch }}<br/> Message: {{ build.message }}"
|
2019-01-21 23:39:42 +00:00
|
|
|
username:
|
|
|
|
from_secret: matrix_username
|
|
|
|
password:
|
|
|
|
from_secret: matrix_password
|
2019-01-21 23:14:48 +00:00
|
|
|
depends_on:
|
|
|
|
- ansible-latest
|
|
|
|
- ansible-master
|