xoxys.python3/.drone.yml

113 lines
2.1 KiB
YAML
Raw Normal View History

2019-01-12 13:52:37 +01:00
---
kind: pipeline
2019-06-09 13:10:45 +02:00
name: linting
platform:
os: linux
arch: amd64
steps:
- name: ansible-latest
pull: always
image: python:3.7
commands:
- pip install ansible ansible-later~=0.2.0 -qq
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
- ansible-later -c ~/policy/config.yml
environment:
PY_COLORS: 1
depends_on:
- clone
- name: ansible-master
pull: always
image: python:3.7
commands:
- "pip install git+https://github.com/ansible/ansible.git@devel ansible-later~=0.2.0 -qq"
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
- ansible-later -c ~/policy/config.yml
environment:
PY_COLORS: 1
depends_on:
- clone
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
---
kind: pipeline
name: deployment
platform:
os: linux
arch: amd64
workspace:
base: /drone/src
2019-06-09 13:21:28 +02:00
path: xoxys.python3
2019-06-09 13:10:45 +02:00
steps:
- name: molecule
pull: always
2019-09-23 10:45:23 +02:00
image: xoxys/molecule:do-linux-amd64
2019-06-09 13:10:45 +02:00
commands:
- /bin/bash /docker-entrypoint.sh
2019-09-23 10:45:23 +02:00
- molecule test -s default
2019-06-09 13:10:45 +02:00
environment:
2019-09-23 10:45:23 +02:00
DO_API_KEY:
from_secret: do_api_key
2019-06-09 13:10:45 +02:00
MOLECULE_CUSTOM_FILTERS_REPO: https://gitea.rknet.org/ansible/custom_filters
MOLECULE_CUSTOM_MODULES_REPO: https://gitea.rknet.org/ansible/custom_modules
PY_COLORS: 1
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
depends_on:
- linting
---
kind: pipeline
name: notifications
platform:
os: linux
arch: amd64
clone:
disable: true
2019-01-12 13:52:37 +01:00
steps:
2019-06-09 13:10:45 +02:00
- name: matrix
image: plugins/matrix
settings:
homeserver: https://matrix.rknet.org
password:
from_secret: matrix_password
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
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
status:
- success
- failure
depends_on:
- deployment
2019-06-09 13:16:30 +02:00
---
kind: signature
2019-09-23 10:45:23 +02:00
hmac: ee260a4d2110cdb893b7f7eee860a905648ae3fcd4010eaf10bb20e13202f02e
2019-06-09 13:16:30 +02:00
2019-06-09 13:10:45 +02:00
...