40 lines
885 B
YAML
40 lines
885 B
YAML
---
|
|
kind: pipeline
|
|
name: deploy to swarm.autonomic.zone
|
|
steps:
|
|
- name: bundle static
|
|
image: plugins/docker
|
|
settings:
|
|
username:
|
|
from_secret: docker_reg_username
|
|
password:
|
|
from_secret: docker_reg_passwd
|
|
repo: decentral1se/autonomic.zone
|
|
tags: latest
|
|
|
|
- name: deployment
|
|
image: decentral1se/stack-ssh-deploy:latest
|
|
settings:
|
|
stack: jekyll
|
|
compose: docker-compose.prod.yml
|
|
deploy_key:
|
|
from_secret: drone_ssh_swarm.autonomic.zone
|
|
|
|
- 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
|
|
event:
|
|
exclude:
|
|
- pull_request
|