A Concourse CI resource to interface with lftp.
It can check any URL lftp understands and download files. Version checking is done listing the directory at url
and applying a glob to find versions.
url
: URL of the remote server, directory listing must be enabled.regexp
: The pattern to match filenames against within the servers directory listing. Only(.*)
is supported. It's only supported once and gets translated to([0-9.-]*)
.
resource_types:
- name: lftp-resource
type: docker-image
source:
repository: machinerytool/concourse-lftp-resource
tag: latest
resources:
- name: fresh-kernel
type: lftp-resource
source:
url: http://download.opensuse.org/tumbleweed/repo/oss/suse/x86_64/
regexp: kernel-default-(.*).x86_64.rpm
jobs:
- name: install-package
plan:
- get: fresh-kernel
- task: work
config:
run:
path: rpm
args: [-i, "*rpm"]
directory: fresh-kernel
Checks the remote server for versions.
Downloads from remote server.
Might actually upload, try to provide credentials in the url
parameter.
files
: Required. Glob of files to be uploaded.
- put: ftp-resource
params:
files: "output/*.tgz"