mont58-theme/.drone.yml
3wc 9e049f7fa6
Some checks failed
continuous-integration/drone/push Build is failing
Add live site Drone
2024-07-16 18:34:02 -04:00

30 lines
903 B
YAML

---
kind: pipeline
name: deploy main branch to live site
steps:
- name: copy theme files to staging
image: git.coopcloud.tech/coop-cloud/docker-cp-deploy:latest
settings:
host: smol-wp.autonomic.zone
service: mont58-staging_smol-wp_autonomic_zone_app
source: wp-content/themes/mont58-coffee
exec_pre: rm -rf /var/www/html/wp-content/themes/mont58-coffee/*
dest: /var/www/html/
deploy_key:
from_secret: drone_ssh_smol-wp.autonomic.zone
when:
branch:
- staging
- name: copy theme files to live
image: appleboy/drone-scp
settings:
host: web1.mont58coffee.com
username: autonomic
key:
from_secret: drone_ssh_mont58coffee.com
target: /var/www/production.mont58coffee.com/web/wp-content/themes/mont58-coffee/
source: wp-content/themes/mont58-coffee/
when:
branch:
- main