kind: pipeline [...] steps: [...] - name: upload image: elfuego/relup:1 host: dl.example.com user: test remote_path: /upload/dl local_path: release project: acmeapp version: 1.0 pwd: from_secret: upload_pwd when: event: [ tag ]
In this example the plugin:
acmeapp-1.0-* in the folder /upload/dl/acmeapp/1.0 on the serveracmeapp-latest-* in the folder /upload/dl/acmeapprelease directory for files acmeapp-1.0-*/upload/dl/acmeapp/1.0acmeapp-latest-* to them in /upload/dl/acmeapphostSFTP host.
Example: host: dl.example.com
portOptional.
SFTP port. Default is 22.
Example: port: 2222
userSFTP user.
Example: user: test
pwdSFTP password.
Example: pwd: test1
Example:
pwd: from_secret: upload_pwd
remote_pathSFTP remote path base to upload to.
Example: remote_path: /upload/dl
local_pathA local path where release files are situated.
Example: local_path: release
projectProject name.
Example: project: acmeapp
versionOptional. Either version or version_file should be used. If used both, this one is preferred.
Project version to proceed.
Example: version: 1.0
version_fileOptional. Either version or version_file should be used. If used both, other one is preferred.
A file which contains project version to proceed.
Example: version_file: .version
hashesOptional.
Hashes to generate. Default is sha1.
Possible values:
md5, sha1, sha224, sha256, sha384, sha512, sha3_224, sha3_256, sha3_384, sha3_512
Several values should be separated by commas.
Example: hashes: md5
Example: hashes: sha1,sha256,sha512