This repository has been archived by the owner on Aug 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.concourse.yml
executable file
·82 lines (73 loc) · 1.83 KB
/
.concourse.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
resource_types:
- name: copr
type: docker-image
source:
repository: quay.io/ahoi/concourse-copr-resource
resources:
- name: container-test-fedora
type: docker-image
source:
repository: quay.io/ratpoison/oregano-test-fedora
username: {{quay-drahnr-username}}
password: {{quay-drahnr-password}}
- name: git-tag-resource
type: git
source:
branch: master
uri: https://github.com/drahnr/goatplot.git
tag_filter: v[0-9]*.[0-9]*.[0-9]*
- name: copr-resource
type: copr
source:
login: {{copr-login}}
token: {{copr-token}}
url: {{copr-url}}
# - name: rpm-release
# type: s3
# source:
# endpoint: https://minio.spearow.io
# bucket: goatplot-rpm
# regexp: (.*).rpm
# access_key_id: {{minio-access-key}}
# secret_access_key: {{minio-secret-key}}
jobs:
- name: build-pkg-rpm
build_logs_to_retain: 5
public: true
plan:
- in_parallel:
- get: container-test-fedora
trigger: true
- get: git-tag-resource
trigger: true
- task: create-rpm
timeout: 7m
image: container-test-fedora
config:
platform: linux
inputs:
- name: git-tag-resource
outputs:
- name: srpm
- name: rpm
run:
path: sh
args:
- -exec
- |
./.concourse/buildrpm.sh goatplot "$(./waf version | head -n 1)"
dir: git-tag-resource
# - in_parallel:
# - put: rpm-release
# params:
# file: rpm/*.rpm
# acl: public-read
- put: copr
resource: copr-resource
params:
project_id: 826
rpmbuild_dir: "srpm"
chroots: ["fedora-rawhide-x86_64", "fedora-30-x86_64", "fedora-29-x86_64"]
enable_net: false
max_n_bytes: 250000000
regex: ".*goatplot-.*\\.src\\.rpm$"