2019-05-11 23:28:24 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
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/**"
|
2019-03-25 21:23:40 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: deployment
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
base: /drone/src
|
|
|
|
path: xoxys.nginx
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: molecule
|
|
|
|
pull: always
|
2019-05-11 22:41:53 +00:00
|
|
|
image: xoxys/molecule:ec2-linux-amd64
|
2019-03-25 21:23:40 +00:00
|
|
|
commands:
|
2019-05-12 12:19:55 +00:00
|
|
|
- /bin/bash /docker-entrypoint.sh
|
2019-06-09 11:07:26 +00:00
|
|
|
- molecule test --scenario-name ec2-centos-7
|
2019-03-25 21:23:40 +00:00
|
|
|
environment:
|
2019-05-12 01:17:12 +00:00
|
|
|
ANSIBLE_ROLES_PATH: /drone/src
|
2019-05-11 22:58:22 +00:00
|
|
|
AWS_ACCESS_KEY_ID:
|
2019-05-11 23:28:24 +00:00
|
|
|
from_secret: aws_access_key_id
|
|
|
|
AWS_REGION: eu-central-1
|
2019-05-11 22:51:43 +00:00
|
|
|
AWS_SECRET_ACCESS_KEY:
|
2019-05-11 23:28:24 +00:00
|
|
|
from_secret: aws_secret_access_key
|
2019-05-12 22:03:24 +00:00
|
|
|
MOLECULE_CUSTOM_FILTERS_REPO: https://gitea.rknet.org/ansible/custom_filters
|
2019-03-25 21:23:40 +00:00
|
|
|
MOLECULE_CUSTOM_MODULES_REPO: https://gitea.rknet.org/ansible/custom_modules
|
|
|
|
PY_COLORS: 1
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- "refs/tags/**"
|
|
|
|
|
2019-05-11 23:28:24 +00:00
|
|
|
depends_on:
|
|
|
|
- linting
|
2019-03-25 21:23:40 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: notifications
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
2019-05-12 12:54:52 +00:00
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
2019-03-25 21:23:40 +00:00
|
|
|
steps:
|
|
|
|
- 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 11:19:52 +00:00
|
|
|
---
|
|
|
|
kind: signature
|
|
|
|
hmac: 226bf0743c15c37dab2a6f13989960e0106d8598fce5b9c256010c132bd13b7c
|
|
|
|
|
2019-03-25 21:23:40 +00:00
|
|
|
...
|