Loading templates/ftp-deploy.yml 0 → 100644 +31 −0 Original line number Diff line number Diff line spec: inputs: ftp_user: type: string ftp_pass: type: string ftp_host: type: string stage: type: string default: deploy step_name: type: string default: deploy additional_arguments: type: string default: source_path: type: string default: ./ destination_path: type: string default: ./ --- $[[ inputs.step_name ]]: image: alpine stage: $[[ inputs.stage ]] before_script: - apk update && apk add --update --no-cache openssh-client lftp script: - lftp -c "set ssl:verify-certificate false; open -u $[[ inputs.ftp_user ]],$[[ inputs.ftp_pass ]] $[[ inputs.ftp_host ]]; mirror -Rnev --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/ --exclude-glob .* $[[ inputs.additional_arguments ]] $[[ inputs.source_path ]] $[[ inputs.destination_path ]]" Loading
templates/ftp-deploy.yml 0 → 100644 +31 −0 Original line number Diff line number Diff line spec: inputs: ftp_user: type: string ftp_pass: type: string ftp_host: type: string stage: type: string default: deploy step_name: type: string default: deploy additional_arguments: type: string default: source_path: type: string default: ./ destination_path: type: string default: ./ --- $[[ inputs.step_name ]]: image: alpine stage: $[[ inputs.stage ]] before_script: - apk update && apk add --update --no-cache openssh-client lftp script: - lftp -c "set ssl:verify-certificate false; open -u $[[ inputs.ftp_user ]],$[[ inputs.ftp_pass ]] $[[ inputs.ftp_host ]]; mirror -Rnev --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/ --exclude-glob .* $[[ inputs.additional_arguments ]] $[[ inputs.source_path ]] $[[ inputs.destination_path ]]"