xoxys.gitea/.drone.yml

41 lines
1.2 KiB
YAML
Raw Normal View History

2019-01-12 13:46:22 +01:00
---
kind: pipeline
name: default
steps:
- name: ansible-latest
2019-01-09 20:31:10 +01:00
image: python:2.7
2019-01-12 13:46:22 +01:00
pull: always
2019-01-09 20:31:10 +01: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-01-12 13:46:22 +01:00
depends_on: [ clone ]
2019-01-09 20:31:10 +01:00
2019-01-12 13:46:22 +01:00
- name: ansible-master
2019-01-09 20:31:10 +01:00
image: python:2.7
2019-01-12 13:46:22 +01:00
pull: always
2019-01-09 20:31:10 +01: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-01-12 13:46:22 +01:00
depends_on: [ clone ]
2019-01-24 22:19:20 +01:00
- 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