|
@ -27,13 +27,9 @@ steps: |
|
|
SFTP_PASSWD: |
|
|
SFTP_PASSWD: |
|
|
from_secret: sftp_passwd |
|
|
from_secret: sftp_passwd |
|
|
commands: |
|
|
commands: |
|
|
- ls public |
|
|
|
|
|
- pwd |
|
|
|
|
|
# - printenv |
|
|
|
|
|
- echo $SFTP_DESTINATION |
|
|
|
|
|
# - sftp $SFTP_DESTINATION <<< $'put -pR public/*' |
|
|
# - sftp $SFTP_DESTINATION <<< $'put -pR public/*' |
|
|
- apk update && apk add lftp |
|
|
- apk update && apk add lftp |
|
|
- lftp -u "my_webapp__3,$SFTP_PASSWD" -p 22 -e "set sftp:auto-confirm yes && cd /www && put /etc/hostname; quit" sftp://172.16.85.20 |
|
|
- lftp -u "my_webapp__3,$SFTP_PASSWD" -p 22 -e "set sftp:auto-confirm yes && cd /www && mirror -R --delete-first public/ /www; quit" sftp://172.16.85.20 |
|
|
|
|
|
|
|
|
#- name: deploy |
|
|
#- name: deploy |
|
|
# image: appleboy/drone-scp |
|
|
# image: appleboy/drone-scp |
|
|