This commit is contained in:
@@ -13,13 +13,15 @@ steps:
|
|||||||
- name: deploy-production
|
- name: deploy-production
|
||||||
image: drillster/drone-rsync
|
image: drillster/drone-rsync
|
||||||
settings:
|
settings:
|
||||||
user: ${PROD_SSH_USER}
|
user:
|
||||||
|
from_secret: PROD_SSH_USER
|
||||||
hosts:
|
hosts:
|
||||||
- ${PROD_SSH_HOST}
|
from_secret: PROD_SSH_HOST
|
||||||
port: 22
|
port: 22
|
||||||
key: ${PROD_SSH_KEY}
|
key:
|
||||||
|
from_secret: PROD_SSH_KEY
|
||||||
source: ./wp-content/
|
source: ./wp-content/
|
||||||
target: ${REMOTE_PATH}/wp-content/
|
target: /var/www/your-site/wp-content/
|
||||||
recursive: true
|
recursive: true
|
||||||
delete: false
|
delete: false
|
||||||
args: >
|
args: >
|
||||||
@@ -37,13 +39,15 @@ steps:
|
|||||||
- name: flush-cache
|
- name: flush-cache
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host: ${PROD_SSH_HOST}
|
host:
|
||||||
username: ${PROD_SSH_USER}
|
from_secret: PROD_SSH_HOST
|
||||||
key: ${PROD_SSH_KEY}
|
username:
|
||||||
|
from_secret: PROD_SSH_USER
|
||||||
|
key:
|
||||||
|
from_secret: PROD_SSH_KEY
|
||||||
script:
|
script:
|
||||||
- cd ${REMOTE_PATH}
|
- cd /var/www/your-site
|
||||||
- if command -v wp &> /dev/null; then wp cache flush; fi
|
- if command -v wp &> /dev/null; then wp cache flush; fi
|
||||||
- touch wp-config.php
|
- touch wp-config.php
|
||||||
when:
|
when:
|
||||||
branch: main
|
branch: main
|
||||||
# Убрали status - он не нужен для этого шага
|
|
||||||
|
|||||||
Reference in New Issue
Block a user