This repository has been archived on 2020-06-17. You can view files and clone it, but cannot push or open issues or pull requests.
homebase/.drone.yml

38 lines
1.1 KiB
YAML
Raw Normal View History

2020-03-25 18:39:53 +00:00
---
kind: pipeline
2020-03-29 09:03:54 +00:00
2020-03-25 18:39:53 +00:00
name: default
2020-03-29 09:03:54 +00:00
2020-03-25 18:39:53 +00:00
steps:
2020-03-29 09:04:19 +00:00
- name: Build Homebase docker image
image: docker:stable
volumes:
- name: docker_sock
path: /var/run/docker.sock
commands:
- docker build --no-cache -t autonomic/homebase:drone .
2020-03-29 09:03:54 +00:00
- name: Deploy Homebase with Dokku
2020-03-25 19:21:34 +00:00
image: appleboy/drone-git-push:0.2.0-linux-amd64
2020-03-25 18:39:53 +00:00
settings:
2020-03-25 21:39:04 +00:00
remote: ssh://dokku@dokku.autonomic.zone:222/homebase
2020-03-25 18:47:44 +00:00
ssh_key:
2020-03-29 09:03:54 +00:00
from_secret: drone_deploy_key
2020-03-29 09:04:38 +00:00
when:
branch: master
2020-03-29 20:28:25 +00:00
- name: Send notification to chat.internal.autonomic.zone
image: rmilewski/drone-rocket:latest
when:
status: [success, failure]
settings:
webhook:
from_secret: rocket_chat_webhook
2020-03-30 13:08:16 +00:00
channel: drone-notify
2020-03-29 20:28:25 +00:00
username: drone-notifications-bot
message:
- value: "${DRONE_COMMIT_AUTHOR} deployed punkbase.autonomic.zone (see [commit](${DRONE_COMMIT_LINK})) :partying_face:"
when:
DRONE_BUILD_STATUS: success
- value: "[commit](${DRONE_COMMIT_LINK}) failed to deploy (see [logs](https://drone.autonomic.zone/autonomic-cooperative/homebase/${DRONE_BUILD_NUMBER})) :confounded:"