A resource intended to make use of the copr infrastructure
https://copr.fedoraproject.org/
http://copr-rest-api.readthedocs.io/en/latest/index.html
resource_types:
- name: copr
type: docker-image
source:
repository: quay.io/ahoi/concourse-copr-resource
resources:
- name: copr-resource
type: copr
source:
project_id: {{copr-project-id}}
login: {{copr-login}}
token: {{copr-token}}
url: {{copr-url}}
regex: ".*\\.src\\.rpm"
See oregano for up to date usage.
login
copr login as provided by the API pagetoken
copr token used to login in combination withlogin
url
copr url, usuallyhttps://copr.fedorainfracloud.org/api_2/builds
or whatever you see while logged in with copr
always returns []
which means no new version, not intended to be checked for
nop
, not intended to be pulled in
Pushes a local srpm to copr
rpmbuild_dir
the path to therpmbuild
base directory which is expected to contain the srpm somewhere underneathproject_id
the associated project_idcurl -u "$LOGIN:$TOKEN" -X GET https://copr.fedorainfracloud.org/api_2/projects?name=$PROJECT_NAME | jq -r ".projects[].project.id"
toregex
regular expression to match the path to the srpm including the srpm name, capture the name as group if possible, if multiple match, the first one is choosen - the default should be finechroots
list of change roots, default:["fedora-25-x86_64"]
enable_net
: enable only if you need the web for building the rpm from your srpm, default:false
max_n_bytes
: the maximum total number of bytes to push, default:1000000000