Add example Drone config

Ref #13
This commit is contained in:
3wc 2021-12-17 12:25:11 +02:00
parent 887be23588
commit e59daa1c28
1 changed files with 32 additions and 0 deletions

32
.drone.yml Normal file
View File

@ -0,0 +1,32 @@
---
kind: pipeline
name: deploy to docker container
steps:
- name: docker cp deploy
image: 3wordchant/docker-cp-deploy:latest
settings:
host: <HOSTNAME>
service: <APP NAME>_php
chdir: src
exec: "composer install"
source: "composer.json composer.lock"
dest: /app/
deploy_key:
from_secret: <SSH KEY DRONE SECRET NAME>
- name: notify on failure
image: plugins/slack
settings:
username: comradebritney
channel: internal.builds
template: "{{repo.owner}}/{{repo.name}} build failed: {{build.link}}. Last commit by @{{build.author}}"
webhook:
from_secret: rc_builds_url
depends_on:
- docker cp deploy
when:
status:
- failure
trigger:
branch:
- main