From 944c82660ba9abf0f49ad3afe2625aa6ad17c972 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 14 Aug 2022 12:16:09 +0300 Subject: v-i: add project Sponsored-by: author --- ci-prod.ick | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/ci-prod.ick b/ci-prod.ick index 947b384..1e822e6 100644 --- a/ci-prod.ick +++ b/ci-prod.ick @@ -1060,6 +1060,25 @@ projects: repo: ssh://git@git.liw.fi/sshca-web pipelines: *website_pipelines + - project: v-i + parameters: + <<: *dummy_program_params + sources: + - name: code + repo: git://git.liw.fi/v-i + ref: main + location: src + workspace_name: v-i + rsync_target: ickliwfi@http.liw.fi:/srv/http/doc.liw.fi/v-i + pipelines: + - ick/setup_container + - ick/add_apt_signing_keys + - ick/add_apt_sources + - ick/restore_workspace + - ick/get_sources + - format_and_publish_markdowns_as_html + - ick/save_workspace + pipelines: @@ -1414,3 +1433,27 @@ pipelines: - where: host action: rsync + + - pipeline: format_and_publish_markdowns_as_html + parameters: + - rsync_src + - rsync_target + actions: + - where: container + shell: | + apt-get install -y pandoc + + output=/workspace/publish + mkdir -p "$output" + + find src -name "*.md" | + grep -Fv .gitlab/ | + while read file + do + base="$(basename "$file" .md)" + pandoc -f markdown -t html "$file" -o "$output/$base.html" + done + find "$output" -type f -exec chmod 0644 '{}' + + + - where: host + action: rsync -- cgit v1.2.1