40 lines
859 B
YAML
40 lines
859 B
YAML
---
|
|
kind: pipeline
|
|
name: deploy to hub.docker.com
|
|
steps:
|
|
- name: run shellcheck
|
|
image: debian:buster
|
|
commands:
|
|
- apt update
|
|
- apt install -y shellcheck
|
|
- shellcheck plugin.sh
|
|
|
|
- name: publish image
|
|
image: plugins/docker
|
|
settings:
|
|
username: thecoopcloud
|
|
password:
|
|
from_secret: thecoopcloud_password
|
|
repo: thecoopcloud/drone-abra
|
|
tags: latest
|
|
purge: true
|
|
pull_image: true
|
|
|
|
- name: notify on failure
|
|
image: plugins/matrix
|
|
settings:
|
|
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
|
|
- publish image
|
|
when:
|
|
status:
|
|
- failure
|
|
trigger:
|
|
branch:
|
|
- main
|