summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-01-15 11:32:44 +0200
committerLars Wirzenius <liw@liw.fi>2020-01-15 11:32:44 +0200
commit057aa067d8fc0900fa5bd3b3d8eb9f0314309f63 (patch)
treeb8f4968682498705458cfbeab0e3531b27048ecf
parent41e59b457ad609f3c54d670de5e35c091e007fcb (diff)
downloadliw-ci-057aa067d8fc0900fa5bd3b3d8eb9f0314309f63.tar.gz
Add: ideas.liw.fi
-rw-r--r--ci-prod-subplot.ick18
-rw-r--r--ci-prod-websites.ick40
2 files changed, 57 insertions, 1 deletions
diff --git a/ci-prod-subplot.ick b/ci-prod-subplot.ick
index 2e481a6..3aff140 100644
--- a/ci-prod-subplot.ick
+++ b/ci-prod-subplot.ick
@@ -13,6 +13,7 @@ projects:
- devscripts
- cargo
- rustc
+ - graphviz
artifact_name: systrees-debian-buster-rust
notify:
- liw@liw.fi
@@ -34,6 +35,8 @@ projects:
- url: http://ci-prod-controller.vm.liw.fi/debian
dist: unstable-ci
section: main
+ rsync_src: examples
+ rsync_target: ickliwfi@journal.liw.fi:/srv/http/examples.subplot.liw.fi
DEBFULLNAME: Lars Wirzenius
DEBEMAIL: liw@liw.fi
systree_name: systrees-debian-buster-rust
@@ -249,6 +252,7 @@ projects:
- ick/build_deb_ci
- list_files
- ick/upload_debs
+ - upload_examples
pipelines:
@@ -272,6 +276,20 @@ pipelines:
- action: rsync
where: host
+ - pipeline: upload_examples
+ parameters:
+ - sources
+ - rsync_src
+ - rsync_target
+ actions:
+ - shell: |
+ mkdir examples
+ cp src/*.html src/*.pdf examples/.
+ where: container
+
+ - action: rsync
+ where: host
+
- pipeline: list_files
actions:
- shell: |
diff --git a/ci-prod-websites.ick b/ci-prod-websites.ick
index f88f80e..4150433 100644
--- a/ci-prod-websites.ick
+++ b/ci-prod-websites.ick
@@ -48,7 +48,26 @@ projects:
- ick/get_sources
- ikiwiki_subplot_incremental
- ick/save_workspace
-
+
+- project: ideas.liw.fi
+ parameters:
+ <<: *website_params
+ workspace_name: ideas.liw.fi
+ rsync_src: publish
+ rsync_target: ickliwfi@ideas.liw.fi:/srv/http/ideas.liw.fi
+ sources:
+ - name: source
+ ref: master
+ location: src
+ repo: ssh://git@git.liw.fi/ideas
+ pipelines:
+ - ick/setup_container
+ - ick/add_apt_signing_keys
+ - ick/add_apt_sources
+ - ick/restore_workspace
+ - ick/get_sources
+ - build_and_publish_subplots
+
- project: journal.liw.fi
parameters:
<<: *website_params
@@ -265,3 +284,22 @@ pipelines:
- action: rsync
where: host
+
+ - pipeline: build_and_publish_subplots
+ parameters:
+ - sources
+ - rsync_src
+ - rsync_target
+ actions:
+ - where: container
+ shell: |
+ apt-get update
+ apt-get install -y subplot make pandoc texlive-latex-base \
+ texlive-latex-recommended texlive-fonts-recommended librsvg2-bin graphviz
+ mkdir publish
+ cd src
+ make
+ cp *.html *.pdf /workspace/publish
+
+ - action: rsync
+ where: host