diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-10-14 13:54:36 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-10-14 13:54:36 +0300 |
commit | 27f80b39e3a131d7b6db893f4989f98b4588083c (patch) | |
tree | 689a2c98b72c68267600351e498ab6b29573a72c | |
parent | 2b293c409b9a783e2a6d0d4e8552b67c45fa6808 (diff) | |
download | ambient-web-27f80b39e3a131d7b6db893f4989f98b4588083c.tar.gz |
chore: add an .ambient.yaml file to allow building with ambient-run
Sponsored-by: author
-rw-r--r-- | .ambient.yaml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.ambient.yaml b/.ambient.yaml new file mode 100644 index 0000000..f7c8e62 --- /dev/null +++ b/.ambient.yaml @@ -0,0 +1,20 @@ +image: /home/liw/tmp/ambient/ikiwiki.qcow2 +source: . +shell: | + #!/bin/bash + # + # Build an ikiwiki of mine, incrementally, and publish it on my local + # web server. + + set -xeuo pipefail + + export HOME=/workspace + + mkdir /workspace/html + sed -i 's#^srcdir:.*#srcdir: /workspace/src#' ikiwiki.setup + sed -i 's#^destdir:.*#destdir: /workspace/html#' ikiwiki.setup + + ikiwiki --setup ikiwiki.setup --libdir /workspace/deps --rebuild --verbose + + find /workspace/html -type f + tar -C /workspace/html -cvf /dev/vdc . |