This repository has been archived on 2021-07-03. You can view files and clone it, but cannot push or open issues or pull requests.
abra/.drone.yml

71 lines
1.5 KiB
YAML
Raw Normal View History

2020-09-08 06:53:03 +00:00
---
kind: pipeline
name: linters
steps:
- name: run shellcheck
2020-12-23 22:55:57 +00:00
image: koalaman/shellcheck-alpine:v0.7.1
2020-09-08 06:53:03 +00:00
commands:
- shellcheck abra
- shellcheck bin/*.sh
2020-10-25 20:17:01 +00:00
2021-04-02 13:42:28 +00:00
- name: run flake8
image: alpine/flake8:3.9.0
commands:
2021-04-04 19:15:00 +00:00
- flake8 --max-line-length 100 bin/app-json.py
2021-04-02 13:42:28 +00:00
2020-10-26 10:25:55 +00:00
- name: run unit tests
image: decentral1se/docker-dind-bats-kcov
2020-10-26 10:25:55 +00:00
commands:
2020-11-01 14:52:36 +00:00
- bats tests
2020-10-26 10:20:17 +00:00
2021-06-03 07:43:44 +00:00
- name: publish image
image: plugins/docker
settings:
auto_tag: true
2021-06-03 07:43:44 +00:00
username:
from_secret: docker_reg_username
password:
from_secret: docker_reg_passwd
repo: decentral1se/abra
tags: latest
depends_on:
- run shellcheck
- run flake8
2021-06-03 07:44:25 +00:00
- run unit tests
2021-06-03 07:43:44 +00:00
- name: trigger downstream builds
image: plugins/downstream
settings:
server: https://drone.autonomic.zone
token:
from_secret: decentral1se_token
fork: true
repositories:
- coop-cloud/drone-abra
depends_on:
- run shellcheck
- run flake8
- run unit tests
- publish image
- name: notify on failure
2021-06-03 21:26:33 +00:00
image: plugins/matrix
settings:
2021-06-03 21:26:33 +00:00
homeserver: https://matrix.autonomic.zone
roomid: "IFazIpLtxiScqbHqoa:autonomic.zone"
userid: "@autono-bot:autonomic.zone"
accesstoken:
from_secret: autono_bot_access_token
depends_on:
- run shellcheck
- run flake8
- run unit tests
- publish image
- trigger downstream builds
when:
status:
- failure
2020-09-08 06:53:03 +00:00
trigger:
branch:
2020-09-08 06:54:54 +00:00
- main