27 lines
560 B
YAML
27 lines
560 B
YAML
|
---
|
||
|
kind: pipeline
|
||
|
name: autonomic.zone/hetzner-ci-cd-nuke
|
||
|
steps:
|
||
|
- name: nuke resources
|
||
|
image: golang:1.16
|
||
|
environment:
|
||
|
HCLOUD_TOKEN:
|
||
|
from_secret: hetzner_ci_cd_token
|
||
|
commands:
|
||
|
- go run hccn.go
|
||
|
|
||
|
- name: notify rocket chat
|
||
|
image: plugins/slack
|
||
|
settings:
|
||
|
webhook:
|
||
|
from_secret: rc_builds_url
|
||
|
username: comradebritney
|
||
|
channel: "internal.builds"
|
||
|
template: "{{repo.owner}}/{{repo.name}} build failed: {{build.link}}"
|
||
|
when:
|
||
|
status:
|
||
|
- failure
|
||
|
trigger:
|
||
|
branch:
|
||
|
- main
|