commit
05eb02e00a
|
@ -49,7 +49,7 @@ jobs:
|
||||||
ssh-keyscan -p ${SSHPORT} ${HOST_NAME} >> ~/.ssh/known_hosts
|
ssh-keyscan -p ${SSHPORT} ${HOST_NAME} >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Deploy (Not Master)
|
name: Deploy
|
||||||
command: |
|
command: |
|
||||||
if [ "${CIRCLE_BRANCH}" != "master" ]; then
|
if [ "${CIRCLE_BRANCH}" != "master" ]; then
|
||||||
ssh -p ${SSHPORT} ${USER_NAME}@${HOST_NAME} "rm -rf /var/www/test/*"
|
ssh -p ${SSHPORT} ${USER_NAME}@${HOST_NAME} "rm -rf /var/www/test/*"
|
||||||
|
|
Loading…
Reference in New Issue