From bdbeaedcf6be9003a96b20bd88da9e119210e60f Mon Sep 17 00:00:00 2001 From: Cassowary Date: Thu, 6 Jun 2024 10:52:15 -0700 Subject: [PATCH] Add autodeployment for theme to the new.lexscotland.org site --- .drone.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..a9c697a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,32 @@ +--- +kind: pipeline +name: deploy main branch to new.lexscotland.org +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 (new) + image: git.coopcloud.tech/coop-cloud/docker-cp-deploy:latest + settings: + host: smol-wp.autonomic.zone + service: new_lexscotland_org_app + source: . + exec_pre: rm -rf /var/www/html/wp-content/themes/lex-scotland-theme/* + dest: /var/www/html/wp-content/themes/lex-scotland-theme + deploy_key: + from_secret: drone_ssh_smol-wp.autonomic.zone + depends_on: + - php syntax check + when: + branch: + - main