39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
---
|
|
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
|
|
depends_on:
|
|
- clone
|
|
|
|
- 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
|
|
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 }}#{{ truncate build.commit 8 }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}"
|
|
username:
|
|
from_secret: matrix_username
|
|
password:
|
|
from_secret: matrix_password
|
|
depends_on:
|
|
- ansible-latest
|
|
- ansible-master
|