fixed drone branch and added event
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
91503fad20
commit
0fbfd727c1
@ -26,7 +26,7 @@ steps:
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
||||
- export REMOTE_PATH=/data/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_REPO_BRANCH}/$(date +'%Y%m%d-%H%M%S')-${DRONE_COMMIT_SHA:0:9}/
|
||||
- export REMOTE_PATH=/data/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_BRANCH}/$(date +'%Y%m%d-%H%M%S')-${DRONE_COMMIT_SHA:0:9}/
|
||||
- export SSHPASS=$${REMOTE_PASSWORD}
|
||||
- sshpass -e ssh $${REMOTE_USERNAME}@$${REMOTE_HOST} "mkdir -p $REMOTE_PATH"
|
||||
- "sshpass -e scp -r gui/target/*.jar $${REMOTE_USERNAME}@$${REMOTE_HOST}:$REMOTE_PATH"
|
||||
@ -38,3 +38,7 @@ steps:
|
||||
from_secret: remote_password
|
||||
REMOTE_HOST:
|
||||
from_secret: remote_host
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
- tag
|
Loading…
Reference in New Issue
Block a user