File: .concourse.yml

package info (click to toggle)
oregano 0.84.41+dfsg.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 11,856 kB
  • sloc: ansic: 22,476; python: 14,159; xml: 1,184; awk: 386; sh: 57; perl: 20; makefile: 17
file content (544 lines) | stat: -rw-r--r-- 12,321 bytes parent folder | download
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
resource_types:
- name: pull-request
  type: docker-image
  source:
    repository: jtarchie/pr
- name: copr
  type: docker-image
  source:
    repository: quay.io/ahoi/concourse-copr-resource

resources:
- name: git-clone-resource
  type: git
  source:
    branch: master
    uri: https://github.com/drahnr/oregano.git

- name: git-ci
  type: git
  source:
    branch: master
    uri: https://github.com/drahnr/oregano.git
    paths:
    - .concourse/*
    - .concourse/**/*
    - .concourse/fedora/*
    - .concourse/ubuntu/*

- name: git-tag-resource
  type: git
  source:
    tag_filter: "v[0-9]*"
    branch: master
    uri: https://github.com/drahnr/oregano.git

- name: git-pull-request-resource
  type: pull-request
  source:
    repo: drahnr/oregano
    access_token: ((sirmergealot-github-token))


- name: copr-resource
  type: copr
  source:
    login: ((copr-login))
    token: ((copr-token))
    url: ((copr-url))

- name: oregano-test-fedora
  type: docker-image
  source:
    repository: quay.io/ratpoison/oregano-test-fedora
    username: ((quay-ratpoison-username))
    password: ((quay-ratpoison-password))
    max_concurrent_downloads: 2
    max_concurrent_uploads: 2

- name: oregano-test-ubuntu
  type: docker-image
  source:
    repository: quay.io/ratpoison/oregano-test-ubuntu
    username: ((quay-ratpoison-username))
    password: ((quay-ratpoison-password))
    max_concurrent_downloads: 2
    max_concurrent_uploads: 2

- name: deb-release
  type: s3
  source:
    endpoint: https://minio.spearow.io
    bucket: oregano-rc
    regexp: (.*).deb
    access_key_id: ((minio-access-key))
    secret_access_key: ((minio-secret-key))

- name: rpm-release
  type: s3
  source:
    endpoint: https://minio.spearow.io
    bucket: oregano-rc
    regexp: (.*).rpm
    access_key_id: ((minio-access-key))
    secret_access_key: ((minio-secret-key))

- name: source-release
  type: s3
  source:
    endpoint: https://minio.spearow.io
    bucket: oregano-rc
    regexp: (.*).tar.xz
    access_key_id: ((minio-access-key))
    secret_access_key: ((minio-secret-key))

- name: deb-drop
  type: s3
  source:
    endpoint: https://minio.spearow.io
    bucket: oregano-drop
    regexp: (.*).deb
    access_key_id: ((minio-access-key))
    secret_access_key: ((minio-secret-key))

- name: rpm-drop
  type: s3
  source:
    endpoint: https://minio.spearow.io
    bucket: oregano-drop
    regexp: (.*).rpm
    access_key_id: ((minio-access-key))
    secret_access_key: ((minio-secret-key))

- name: source-drop
  type: s3
  source:
    endpoint: https://minio.spearow.io
    bucket: oregano-drop
    regexp: (.*).tar.xz
    access_key_id: ((minio-access-key))
    secret_access_key: ((minio-secret-key))

- name: gh-release
  type: github-release
  source:
    owner: drahnr
    repository: oregano
    access_token: ((drahnr-github-token))

groups:
- name: release
  jobs:
  - source-release
  - build-pkg-deb-release
  - build-pkg-rpm-release
  - make-release
- name: master
  jobs:
  - build-pkg-deb
  - build-pkg-rpm
  - compile
- name: pr
  jobs:
  - pr-validate
- name: env
  jobs:
  - oci-fedora
  - oci-ubuntu

jobs:
  - name: oci-fedora
    serial_groups: [constructors]
    build_logs_to_retain: 2
    plan:
    - get: oregano-test-fedora
    - get: git-ci
      trigger: true

    - task: gen-container
      image: oregano-test-fedora
      config:
        platform: linux
        inputs:
        - name: git-ci
        outputs:
        - name: copycat
        run:
          path: sh
          args:
          - -exc
          - |
            cp -rfv .concourse/fedora/Dockerfile ../copycat/
            cp -rfv .concourse/fedora/pkg.lst ../copycat/
          dir: git-ci

    - put: oregano-test-fedora
      params:
        build: copycat
        tag_as_latest: true


  - name: oci-ubuntu
    serial_groups: [constructors]
    build_logs_to_retain: 2
    plan:
    - get: oregano-test-ubuntu
    - get: git-ci
      trigger: true

    - task: gen-container
      image: oregano-test-ubuntu
      config:
        platform: linux
        inputs:
        - name: git-ci
        outputs:
        - name: copycat
        run:
          path: sh
          args:
          - -exc
          - |
            cp -rfv .concourse/ubuntu/Dockerfile ../copycat/
            cp -rfv .concourse/ubuntu/pkg.lst ../copycat/
          dir: git-ci

    - put: oregano-test-ubuntu
      params:
        build: copycat
        tag_as_latest: true


  - name: pr-validate
    build_logs_to_retain: 20
    public: true
    plan:
    - aggregate:
      - get: oregano-test-fedora
        trigger: true
      - get: oregano-test-ubuntu
        trigger: true
      - get: git-pull-request-resource
        trigger: true
    - aggregate:
      - task: compile
        timeout: 5m
        image: oregano-test-fedora
        config:
          platform: linux
          inputs:
          - name: git-pull-request-resource
          run:
            path: sh
            args:
            - -exc
            - |
              ./waf configure build --debug --prefix=/tmp install
              ./build/test/microtests
            dir: "git-pull-request-resource"

      - task: create-rpm
        timeout: 15m
        image: oregano-test-fedora
        config:
          platform: linux
          inputs:
          - name: git-pull-request-resource
          run:
            path: .concourse/fedora/buildrpm.sh
            dir: git-pull-request-resource

      - task: create-deb
        timeout: 15m
        image: oregano-test-ubuntu
        config:
          platform: linux
          inputs:
          - name: git-pull-request-resource
          run:
            path: debuild
            args: ["-i", "-us", "-uc", "-b"]
            dir: git-pull-request-resource


      on_success:
        put: git-pull-request-resource
        params:
          path: git-pull-request-resource
          status: success

      on_failure:
        put: git-pull-request-resource
        params:
          path: git-pull-request-resource
          status: failure

  - name: compile
    build_logs_to_retain: 10
    public: true
    plan:
    - aggregate:
      - get: oregano-test-fedora
        trigger: true
      - get: git-clone-resource
        trigger: true

    - task: compile
      timeout: 15m
      image: oregano-test-fedora
      config:
        platform: linux
        inputs:
        - name: git-clone-resource
        outputs:
        - name: dist
        run:
          path: sh
          args:
          - -exc
          - |
            ./waf configure build --debug --prefix=/tmp install
            ./build/test/microtests && echo "tests passed" || cat ./build/test/test.log
            ./waf dist
            cp oregano-*.tar.xz ../dist/
          dir: git-clone-resource

    - put: source-drop
      params:
        file: dist/oregano-*.tar.xz
        acl: public-read

  - name: build-pkg-rpm
    build_logs_to_retain: 5
    public: true
    plan:
    - aggregate:
      - get: oregano-test-fedora
        trigger: true
      - get: git-clone-resource
        trigger: true
        passed: [compile]

    - task: create-rpm
      timeout: 15m
      image: oregano-test-fedora
      config:
        platform: linux
        inputs:
        - name: git-clone-resource
        outputs:
        - name: srpm
        - name: rpm
        run:
          path: ./.concourse/fedora/buildrpm.sh
          args: [ .. ]
          dir: git-clone-resource

    - put: rpm-drop
      params:
        file: rpm/oregano*.rpm
        acl: public-read

  - name: build-pkg-deb
    build_logs_to_retain: 5
    public: true
    plan:
    - aggregate:
      - get: oregano-test-ubuntu
        trigger: true
      - get: git-clone-resource
        trigger: true
        passed: [compile]

    - task: create-deb
      timeout: 15m
      image: oregano-test-ubuntu
      config:
        platform: linux
        inputs:
        - name: git-clone-resource
        outputs:
        - name: deb
        run:
          path: sh
          args:
          - -exc
          - |
            mkdir quirk
            cp -rf git-clone-resource ./quirk/source
            cd quirk/source

            debuild -i -us -uc -b
            cd -
            cp quirk/oregano*.deb deb

    - put: deb-drop
      params:
        file: deb/oregano*.deb
        acl: public-read

###############################################################################



  - name: source-release
    build_logs_to_retain: 10
    public: true
    plan:
    - aggregate:
      - get: oregano-test-fedora
        trigger: true
      - get: git-tag-resource
        trigger: true

    - task: source
      timeout: 15m
      image: oregano-test-fedora
      config:
        platform: linux
        inputs:
        - name: git-tag-resource
        outputs:
        - name: dist
        run:
          path: sh
          args:
          - -exc
          - |
            ./waf configure --debug --prefix=/tmp install
            ./waf dist
            cp oregano-*.tar.xz ../dist/
          dir: git-tag-resource

    - put: source-release
      params:
        file: dist/oregano-*.tar.xz
        acl: public-read

  - name: build-pkg-rpm-release
    build_logs_to_retain: 5
    public: true
    plan:
    - aggregate:
      - get: oregano-test-fedora
        trigger: true
      - get: git-tag-resource
        trigger: true

    - task: create-rpm
      timeout: 15m
      image: oregano-test-fedora
      config:
        platform: linux
        inputs:
        - name: git-tag-resource
        outputs:
        - name: srpm
        - name: rpm
        run:
          path: ./.concourse/fedora/buildrpm.sh
          args: [ .. ]
          dir: git-tag-resource

    - put: rpm-release
      params:
        file: rpm/oregano*.rpm
        acl: public-read

    - put: copr
      resource: copr-resource
      params:
        rpmbuild_dir: "srpm"
        chroots: ["fedora-rawhide-x86_64", "fedora-27-x86_64", "fedora-26-x86_64", "fedora-25-x86_64"]
        enable_net: false
        max_n_bytes: 250000000
        project_id: 825
        regex: ".*oregano-.*\\.src\\.rpm$"

  - name: build-pkg-deb-release
    build_logs_to_retain: 5
    public: true
    plan:
    - aggregate:
      - get: oregano-test-ubuntu
        trigger: true
      - get: git-tag-resource
        trigger: true

    - task: create-deb
      timeout: 15m
      image: oregano-test-ubuntu
      config:
        platform: linux
        inputs:
        - name: git-tag-resource
        outputs:
        - name: deb
        run:
          path: sh
          args:
          - -exc
          - |
            mkdir quirk
            cp -rf git-tag-resource ./quirk/source
            cd quirk/source

            debuild -i -us -uc -b
            cd -
            cp quirk/oregano*.deb deb

    - put: deb-release
      params:
        file: deb/oregano*.deb
        acl: public-read

  - name: make-release
    build_logs_to_retain: 5
    public: true
    plan:
    - aggregate:
      - get: git-tag-resource
        passed: [source-release,build-pkg-rpm-release, build-pkg-deb-release]
        trigger: true
      - get: oregano-test-fedora
      - get: source-release
        passed: [source-release]
      - get: rpm-release
        passed: [build-pkg-rpm-release]
      - get: deb-release
        passed: [build-pkg-deb-release]
    - task: tag2file
      timeout: 5m
      image: oregano-test-fedora
      config:
        platform: linux
        inputs:
        - name: git-tag-resource
        - name: source-release
        - name: deb-release
        - name: rpm-release
        outputs:
        - name: release-info
        run:
          path: sh
          args:
          - -exc
          - |
            git rev-parse HEAD > ../release-info/COMMITISH
            ./waf version
            cat VERSION > ../release-info/TAG
            echo "oregano" > ../release-info/NAME
            echo "Yet another release" > ../release-info/BODY
          dir: git-tag-resource
    - put: gh-release
      params:
        tag_prefix: v
        name: release-info/NAME
        tag: release-info/TAG
        body: release-info/BODY
        commitish: release-info/COMMITISH
        globs:
        - source-release/oregano-*.tar.xz
        - rpm-release/oregano-*.rpm
        - deb-release/oregano_*.deb