parent
79047e02e5
commit
4ccb5b9a4e
15
.drone.yml
15
.drone.yml
@ -2,6 +2,19 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: deploy main branch to live site
|
name: deploy main branch to live site
|
||||||
steps:
|
steps:
|
||||||
|
- name: php syntax check
|
||||||
|
image: php:8.3.7-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
|
- name: docker cp deploy
|
||||||
image: git.coopcloud.tech/coop-cloud/docker-cp-deploy:latest
|
image: git.coopcloud.tech/coop-cloud/docker-cp-deploy:latest
|
||||||
settings:
|
settings:
|
||||||
@ -13,6 +26,8 @@ steps:
|
|||||||
dest: /var/www/html/
|
dest: /var/www/html/
|
||||||
deploy_key:
|
deploy_key:
|
||||||
from_secret: drone_ssh_server.example.com
|
from_secret: drone_ssh_server.example.com
|
||||||
|
depends_on:
|
||||||
|
- php syntax check
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
Loading…
Reference in New Issue
Block a user