https://github.com/openSUSE/lftp-concourse-resource
A Concourse CI resource type to access resources via ftp, http, sftp, and fish
https://github.com/openSUSE/lftp-concourse-resource
Last synced: about 1 month ago
JSON representation
A Concourse CI resource type to access resources via ftp, http, sftp, and fish
- Host: GitHub
- URL: https://github.com/openSUSE/lftp-concourse-resource
- Owner: openSUSE
- Created: 2017-07-20T11:15:14.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-18T14:04:48.000Z (over 5 years ago)
- Last Synced: 2024-10-28T01:13:05.524Z (6 months ago)
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 5
- Watchers: 6
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- stars - openSUSE/lftp-concourse-resource
README
# LFTP Resource
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.## Source Configuration
* `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.-]*)`.## Example
```
resource_types:
- name: lftp-resource
type: docker-image
source:
repository: machinerytool/concourse-lftp-resource
tag: latestresources:
- name: fresh-kernel
type: lftp-resource
source:
url: http://download.opensuse.org/tumbleweed/repo/oss/suse/x86_64/
regexp: kernel-default-(.*).x86_64.rpmjobs:
- name: install-package
plan:
- get: fresh-kernel
- task: work
config:
run:
path: rpm
args: [-i, "*rpm"]
directory: fresh-kernel
```## Behaviour
### `check`: Check for new revisions
Checks the remote server for versions.
### `in`: Fetch from build service
Downloads from remote server.
### `out`: Build and/or Commit to build service
Might actually upload, try to provide credentials in the `url` parameter.
#### Parameters
* `files`: Required. Glob of files to be uploaded.
#### Example
```
- put: ftp-resource
params:
files: "output/*.tgz"
```