summaryrefslogtreecommitdiff
path: root/ci-prod-distixes.ick
blob: 10c8541fa6df38cddffcdbcca4d8ea208f09e6ce (plain)
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
# Some projetcts to build static web sites from distix repos.

projects:

  - project: stretch-distix-systree
    parameters:
      systree_name: systrees-debian-stretch-base
      artifact_name: systrees-debian-stretch-distix
      packages:
        - ikiwiki
        - libhighlight-perl
        - libimage-magick-perl
        - graphviz
        - ql-ikiwiki-publish
        - locales-all
        - distix
        - pandoc
        - locales-all
      notify: [liw@liw.fi]
      apt_sources:
        - url: http://ci-prod-controller.vm.liw.fi/debian
          dist: stretch-ci
          section: main
      apt_signing_pub_keys:
        code.liw.fi: |
          -----BEGIN PGP PUBLIC KEY BLOCK-----

          mQINBFrLO7kBEADdz6mHstYmKU5Dp6OSjxWtWaqTDOX1sJdmmaIK/9EKVIH0Maxp
          5kvVO5G6mULLAjv/kLG0MxasHPrq8I2A/y8AqKAGVL8QelwLjQMIFZ30/VbGQPHS
          +T5TZXEnoQtNce1GUhFwJ38ZyjjwHBFV9tSec7rZ2Q3YeM3nNnGPf6DacXGfEOPO
          HIN4sXAN2hzNXNjKRzTIvxQseb6nr7afUh/SlZ3yhQOCrIzmYlD7tP9WJe7ofL0p
          JY4pDQYw8rT6nC2BE/ioemh84kERCT1vCe+OVFlSRuMlqfEv+ZpKQ+itOmPDQ/lM
          jpUm1K2hrW/lWpxT/ZxHKo/w1K36J5WshgMZxfUu5BMCL9LMqMcrXNhNjDMfxDMM
          3yBPOvQ4ls6fecOZ/bsFo1p8VzMk/w/eG8vPs5yuNa5XxN95yFMXoOHGb5Xbu8D4
          6yiW+Af70LbiSNpGdmNdneiGB2fY38NxBukPw5u3S5qG8HedSmMr1RvSr5kHoAAe
          UbOY+BYaaKsTAT7+1skUW1o3FJSqoRKCHAzTsMWC6zzhR8hRn7jVrrguH1hGbqq5
          TZSCFQZExuTJ7uXrTLG0WoBXIjB5wWNcSeXn8myUWYB51nJNF4tJBouZOz9JwWGl
          kiAQkrHnBttLQWdW9FyjbIoTZMtpvVx+m6ObGTGdGL1cNlLAvWprMXGc+QARAQAB
          tDJJY2sgQVBUIHJlcG9zaXRvcnkgc2lnbmluZyBrZXkgKDIwMTgpIDxsaXdAbGl3
          LmZpPokCTgQTAQgAOBYhBKL1uyDoXyxUH3O717Wr+TZVS6PGBQJayzu5AhsDBQsJ
          CAcCBhUICQoLAgQWAgMBAh4BAheAAAoJELWr+TZVS6PGB5QQANTcikhRUHwt9N4h
          dGc/Hp6CbqdshMoWlwpFskttoVDxQG5OAobuZl5XyzGcmja1lT85RGkZFfbca0IZ
          LnXOLLSAu51QBkXNaj4OhjK/0uQ+ITrvL6RQSXNgHiUTR/W2XD1GIUq6nBqe2GSN
          31S1baYKKVj5QIMsi7Dq8ls3BBXuPCE+xTSaNmGWjes2t9pPidcRvxsksCLY1qgw
          P1GFXBeMkBQ29kBP87SUL15SIk7OiQLlEURCy5iRls5rt/YEsdEpRWIb0Tm5Nrjv
          2M3VM+iBhfNXTwj0rJ34mlycF1qQmA7YcTEobT7z587GPY0VWzBpQUnEQj7rQWPM
          cDYY0b+I6kQ8VKOaL4wVAtE98d7HzFIrIrwhTKufnrWrVDPYsmLZ+LPC1jiF7JBD
          SR6Vftb+SdDR9xoE1yRuXbC6IfoW+5/qQNrdQ2mm9BFw5jOonBqchs18HTTf3441
          6SWwP9fY3Vi+IZphPPi0Gf85oMStgnv/Wnw6LacEL32ek39Desero/D8iGLZernK
          Q2mC9mua5A/bYGVhsNWyURNFkKdbFa+/wW3NfdKYyZnsSfo+jJ2luNewrhAY7Kod
          GWXTer9RxzTGA3EXFGvNr+BBOOxSj0SfWTl0Olo7J5dnxof+jLAUS1VHpceHGHps
          GSJSdir7NkZidgwoCPA7BTqsb5LN
          =dXB0
          -----END PGP PUBLIC KEY BLOCK-----
    pipelines:
      - ick/setup_container
      - ick/add_apt_signing_keys
      - ick/add_apt_sources
      - ick/install_debian_packages
      - ick/archive_systree

  - project: dummy_distix
    parameters: &distix_params
      rsync_src: html
      systree_name: systrees-debian-stretch-distix
      notify: [liw@liw.fi]
    pipelines: &distix_pipelines
      - ick/setup_container
      - ick/get_sources
      - distix_html

  - project: bugs@liw.fi
    parameters:
      <<: *distix_params
      rsync_target: ickliwfi@pieni.net:/srv/http/bugs.liw.fi
      sources:
        - name: source
          ref: master
          location: src
          repo: ssh://git@git.liw.fi/bugs-liw-fi-distix
    pipelines: *distix_pipelines

  - project: tickets@distix.eu
    parameters:
      <<: *distix_params
      rsync_target: ickliwfi@pieni.net:/srv/http/tickets.distix.eu
      sources:
        - name: source
          ref: master
          location: src
          repo: ssh://git@git.liw.fi/distix-bugs
    pipelines: *distix_pipelines

  - project: ick-support
    parameters:
      <<: *distix_params
      rsync_target: ickliwfi@pieni.net:/srv/http/ick-support.liw.fi
      sources:
        - name: source
          ref: master
          location: src
          repo: ssh://git@git.liw.fi/ick-devel-distix
    pipelines: *distix_pipelines

  - project: qvarn-devel
    parameters:
      <<: *distix_params
      rsync_target: static@static.qvarnlabs.net:/srv/http/qvarn-devel.qvarnlabs.net
      notify: [liw@qvarnlabs.com, ivan@qvarnlabs.com]
      sources:
        - name: source
          ref: master
          location: src
          repo: ssh://git@git.qvarnlabs.net/qvarn-devel.distix
    pipelines: *distix_pipelines

  - project: issues.qvarnlabs.net
    parameters:
      <<: *distix_params
      rsync_target: static@static.qvarnlabs.net:/srv/http/issues.qvarnlabs.net
      notify: [liw@qvarnlabs.com, ivan@qvarnlabs.com]
      sources:
        - name: source
          ref: master
          location: src
          repo: ssh://git@git.qvarnlabs.net/issues.distix
    pipelines: *distix_pipelines

  - project: qvarn-support
    parameters:
      <<: *distix_params
      notify: [liw@qvarnlabs.com, ivan@qvarnlabs.com]
      rsync_target: static@static.qvarnlabs.net:/srv/http/qvarn-support.qvarnlabs.net
      sources:
        - name: source
          ref: master
          location: src
          repo: ssh://git@git.qvarnlabs.net/qvarn-support.distix
    pipelines: *distix_pipelines

  - project: defour-support
    parameters:
      <<: *distix_params
      notify: [liw@qvarnlabs.com, ivan@qvarnlabs.com]
      rsync_target: static@static.qvarnlabs.net:/srv/http/defour-support.qvarnlabs.net
      sources:
        - name: source
          ref: master
          location: src
          repo: ssh://git@git.qvarnlabs.net/defour-support.distix
    pipelines: *distix_pipelines

pipelines:

  - pipeline: distix_html
    parameters:
      - sources
      - rsync_src
      - rsync_target
    actions:
      - python: |
          import os, re, subprocess
          def RUN(*args, cwd=None):
            print('Executing:', args, 'cwd:', cwd)
            subprocess.check_call(args, cwd=cwd)
          sources = params['sources']

          RUN('rm', '-rf', 'html')
          for source in sources:
            dirname = source['location']
            RUN('distix', 'html', '/workspace/html', cwd=dirname)
        where: container

      - action: rsync
        where: host