This repository has been archived on 2024-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
wordpress-bedrock-template/.drone.yml
2021-12-17 12:25:11 +02:00

33 lines
779 B
YAML

---
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