|
@ -20,10 +20,12 @@ steps: |
|
|
|
|
|
|
|
|
- name: deploy |
|
|
- name: deploy |
|
|
image: alpine/git |
|
|
image: alpine/git |
|
|
secrets: [ sftp_destination, sftp_passwd ] |
|
|
secrets: [ sftp_passwd ] |
|
|
commands: |
|
|
commands: |
|
|
- ls |
|
|
- ls public |
|
|
- pwd |
|
|
- pwd |
|
|
|
|
|
- printenv |
|
|
|
|
|
- echo $SFTP_PASSWD |
|
|
# - 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 && put /etc/hostname; quit" sftp://172.16.85.20 |
|
|