xoxys.homeassistant_docker/.drone.yml

117 lines
2.3 KiB
YAML
Raw Normal View History

2019-04-27 13:52:50 +02:00
---
kind: pipeline
name: linting
platform:
os: linux
arch: amd64
steps:
- name: ansible-latest
pull: always
image: python:3.7
commands:
2019-05-19 16:25:22 +02:00
- pip install ansible ansible-later~=0.2.0 -qq
2019-04-27 13:52:50 +02:00
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
- ansible-later -c ~/policy/config.yml
2019-04-27 13:52:50 +02:00
environment:
PY_COLORS: 1
depends_on:
- clone
- name: ansible-master
pull: always
image: python:3.7
commands:
2019-05-19 16:25:22 +02:00
- "pip install git+https://github.com/ansible/ansible.git@devel ansible-later~=0.2.0 -qq"
2019-04-27 13:52:50 +02:00
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
- ansible-later -c ~/policy/config.yml
2019-04-27 13:52:50 +02:00
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-05-19 16:20:32 +02:00
path: xoxys.homeassistant
2019-04-27 13:52:50 +02:00
steps:
- name: molecule
pull: always
2019-05-19 16:25:22 +02:00
image: xoxys/molecule:ec2-linux-amd64
2019-04-27 13:52:50 +02:00
commands:
- /bin/bash /docker-entrypoint.sh
2019-05-20 09:01:50 +02:00
- molecule test --scenario-name ec2-centos-7
2019-04-27 13:52:50 +02:00
environment:
2019-05-19 16:25:22 +02:00
ANSIBLE_ROLES_PATH: /drone/src
AWS_ACCESS_KEY_ID:
from_secret: aws_access_key_id
AWS_REGION: eu-central-1
AWS_SECRET_ACCESS_KEY:
from_secret: aws_secret_access_key
MOLECULE_CUSTOM_FILTERS_REPO: https://gitea.rknet.org/ansible/custom_filters
2019-04-27 13:52:50 +02:00
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
2019-05-19 16:25:22 +02:00
clone:
disable: true
2019-04-27 13:52:50 +02: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 13:18:06 +02:00
---
kind: signature
hmac: 173cf4ff8ceaa9f6a3e74e305f091796275df73905000ccfe7d454127294e0da
2019-04-27 13:52:50 +02:00
...