Merge branch 'main' of ssh://git.autonomic.zone:2222/autonomic-cooperative/jett-theme
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Aadil Ayub 2024-05-31 15:24:32 +05:00
commit e858b5505c

32
.drone.yml Normal file
View File

@ -0,0 +1,32 @@
---
kind: pipeline
name: deploy main branch to live site
steps:
- name: php syntax check
image: php:8.2.19-cli
commands:
- for f in $(find /drone -name '*.php'); do php -l "$f"; done
# If a custom block is in use, uncomment this (and make sure package.json
# includes `scripts.build`, and change the `depends_on` below
# - name: compile custom block
# image: node:18.18.2
# commands:
# - npm install
# - npm run build
# depends_on:
# - php syntax check
- name: docker cp deploy
image: git.coopcloud.tech/coop-cloud/docker-cp-deploy:latest
settings:
host: smol-wp.autonomic.zone
service: jett_autonomic_zone_app
source: .
exec_pre: rm -rf /var/www/html/wp-content/themes/jett-theme/*
dest: /var/www/html/wp-content/themes/jett-theme
deploy_key:
from_secret: drone_ssh_smol-wp.autonomic.zone
depends_on:
- php syntax check
when:
branch:
- main