drone-abra/.drone.yml

44 lines
965 B
YAML

---
kind: pipeline
name: publish image
steps:
- name: run shellcheck
image: debian:bullseye
commands:
- apt update
- apt install -y shellcheck
- shellcheck plugin.sh
- name: publish image
image: plugins/docker
settings:
username: 3wordchant
password:
from_secret: git_coopcloud_tech_token_3wc
repo: git.coopcloud.tech/coop-cloud/drone-abra
tags: latest
registry: git.coopcloud.tech
tags: latest
purge: true
pull_image: true
depends_on:
- run shellcheck
- 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