2023-01-19 19:08:30 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: deploy to docker container
|
|
|
|
steps:
|
|
|
|
- name: remove .git
|
|
|
|
image: debian:buster
|
|
|
|
commands:
|
|
|
|
- rm -r .git/
|
|
|
|
- name: php syntax check
|
|
|
|
image: php:8.0.10-cli
|
|
|
|
commands:
|
|
|
|
- for f in $(find /drone -name '*.php'); do php -l "$f"; done
|
|
|
|
- name: docker cp deploy
|
2023-01-24 22:35:32 +00:00
|
|
|
image: git.coopcloud.tech/coop-cloud/docker-cp-deploy:latest
|
2023-01-19 19:08:30 +00:00
|
|
|
settings:
|
|
|
|
host: smol-wp.autonomic.zone
|
|
|
|
service: beta_autonomic_zone_app
|
|
|
|
source: .
|
|
|
|
dest: /var/www/html/wp-content/themes/autonomic-block-theme
|
|
|
|
deploy_key:
|
|
|
|
from_secret: drone_ssh_smol-wp.autonomic.zone
|
|
|
|
depends_on:
|
|
|
|
- php syntax check
|
|
|
|
- name: notify on failure
|
|
|
|
image: plugins/slack
|
|
|
|
settings:
|
|
|
|
username: comradebritney
|
2023-01-24 07:49:41 +00:00
|
|
|
channel: internal.website
|
2023-01-19 19:08:30 +00:00
|
|
|
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:
|
2023-01-24 07:43:25 +00:00
|
|
|
- main
|