naomi
69572713a4
Drone now deploys to dev after a push to the master branch, as opposed to the dev branch.
36 lines
915 B
YAML
36 lines
915 B
YAML
---
|
|
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
|
|
- /var/www/gno/vendor/bin/drush updb
|
|
- /var/www/gno/vendor/bin/drush config:import --source=modules/contrib/goodnightout_opencase/config/optional -y
|
|
- 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:
|
|
- master
|