diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-08-14 12:16:09 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-08-14 12:16:09 +0300 |
commit | 944c82660ba9abf0f49ad3afe2625aa6ad17c972 (patch) | |
tree | fc09d324f3cd013b1062bb0f7ab1a2ca36128d0b | |
parent | 6dc0b89dc006425151d3cbc2eebebbbdbf0bfe52 (diff) | |
download | liw-ci-944c82660ba9abf0f49ad3afe2625aa6ad17c972.tar.gz |
v-i: add project
Sponsored-by: author
-rw-r--r-- | ci-prod.ick | 43 |
1 files changed, 43 insertions, 0 deletions
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 |