This repository has been archived on 2022-07-13. You can view files and clone it, but cannot push or open issues or pull requests.
opencase_composer/.drone.yml

36 lines
817 B
YAML
Raw Normal View History

2021-10-11 10:55:09 +00:00
---
kind: pipeline
name: deploy to docker container
steps:
- name: deploy via ssh
image: appleboy/drone-ssh
settings:
host: dev.autonomic.zone
port: 222
username: gno
key:
from_secret: drone_ssh_dev.autonomic.zone
script:
- cd /var/www/gno
- git pull
- composer install
2021-10-11 20:05:01 +00:00
- drush updb
- drush config:import --source=../config
2021-10-11 10:55:09 +00:00
- name: notify on failure
image: plugins/slack
settings:
username: comradebritney
channel: clients.goodnightout
template: "{{repo.owner}}/{{repo.name}} build failed: {{build.link}}. Last commit by @{{build.author}}"
webhook:
from_secret: rc_builds_url
depends_on:
- deploy via ssh
when:
status:
- failure
trigger:
branch:
- dev