summaryrefslogtreecommitdiff
path: root/ci-prod-distixes.ick
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-07-27 17:14:41 +0300
committerLars Wirzenius <liw@liw.fi>2018-07-27 17:14:41 +0300
commit37147aa3ce743132cb973d8adec54fe7d8b2d08c (patch)
treed5354f3385e32ad35ab05c742b0d979e4c1ea0fb /ci-prod-distixes.ick
parentd8ceea1cb92cbbe5b200e9452a8b9e9645b18957 (diff)
downloadliw-ci-37147aa3ce743132cb973d8adec54fe7d8b2d08c.tar.gz
Change: split up ci-prod.ick into smaller files, re-create all
Diffstat (limited to 'ci-prod-distixes.ick')
-rw-r--r--ci-prod-distixes.ick176
1 files changed, 176 insertions, 0 deletions
diff --git a/ci-prod-distixes.ick b/ci-prod-distixes.ick
new file mode 100644
index 0000000..10c8541
--- /dev/null
+++ b/ci-prod-distixes.ick
@@ -0,0 +1,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/SlZ3yhQOC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FIrIrwhTKufnrWrVDPYsmLZ+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
+