This repository has been archived on 2023-02-03. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic.zone/.drone.yml
2021-01-29 13:31:17 +01:00

41 lines
906 B
YAML

---
kind: pipeline
name: deploy to swarm.autonomic.zone
steps:
- name: bundle
image: plugins/docker
settings:
username:
from_secret: docker_reg_username
password:
from_secret: docker_reg_passwd
repo: decentral1se/autonomic.zone
tags: latest
- name: deploy
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
depends_on: ["bundle", "deploy"],
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