GithubHelp home page GithubHelp logo

drahnr / concourse-copr-resource Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 45 KB

A resource for concourse ci to push to copr

Rust 100.00%
concourse ci continuous-integration copr fedora rpm resource

concourse-copr-resource's Introduction

copr resource for concourse

A resource intended to make use of the copr infrastructure

https://copr.fedoraproject.org/

http://copr-rest-api.readthedocs.io/en/latest/index.html

usage

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"

example

See oregano for up to date usage.

source

  • login copr login as provided by the API page
  • token copr token used to login in combination with login
  • url copr url, usually https://copr.fedorainfracloud.org/api_2/builds or whatever you see while logged in with copr

check

always returns [] which means no new version, not intended to be checked for

in

nop, not intended to be pulled in

out

Pushes a local srpm to copr

  • rpmbuild_dir the path to the rpmbuild base directory which is expected to contain the srpm somewhere underneath
  • project_id the associated project_id curl -u "$LOGIN:$TOKEN" -X GET https://copr.fedorainfracloud.org/api_2/projects?name=$PROJECT_NAME | jq -r ".projects[].project.id" to
  • regex 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 fine
  • chroots 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

concourse-copr-resource's People

Contributors

drahnr avatar

Stargazers

 avatar

Watchers

 avatar

concourse-copr-resource's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.