diff --git a/.drone.yml b/.drone.yml index 48c076a..b0247dc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,12 +20,17 @@ steps: - name: deploy image: alpine/git - secrets: [ sftp_passwd ] +# secrets: [ sftp_destination, sftp_passwd ] + environment: + SFTP_DESTINATION: + from_secret: sftp_destination + SFTP_PASSWD: + from_secret: sftp_passwd commands: - ls public - pwd - - printenv - - echo $SFTP_PASSWD +# - printenv + - echo $SFTP_DESTINATION # - sftp $SFTP_DESTINATION <<< $'put -pR public/*' - 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