summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-07-31 19:57:00 +0300
committerLars Wirzenius <liw@liw.fi>2023-07-31 19:57:00 +0300
commitc00158b2ebf120c49dcd699b53d02c384fce3a72 (patch)
tree7776d23dcefaa81bd69b3f38f9c3377efed72e0c
parentc17ca22348cc389213b6affae26d5d84376e81ed (diff)
downloadambient-ci-c00158b2ebf120c49dcd699b53d02c384fce3a72.tar.gz
fix: update ikiwiki.sh to current ambient-run CLI
Sponsored-by: author
-rwxr-xr-xikiwiki.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/ikiwiki.sh b/ikiwiki.sh
index 90e444b..2949687 100755
--- a/ikiwiki.sh
+++ b/ikiwiki.sh
@@ -44,12 +44,17 @@ cp "$ambientdir/ikiwiki-ambient-script" "$script"
# directory. An incremental build needs the local html directory and
# the site's .ikiwiki directory, and changes to those need to persist
# between runs, so we use the cache mechanism.
+
+cat <<EOF >"$tmp/build.yaml"
+image: ~/tmp/ambient/ambient-ikiwiki.qcow2
+src: $srcdir
+cache: $cache
+dependencies: ~/.ikiwiki/
+EOF
+
"$ambientdir/ambient-run" \
- --image ~/tmp/ambient/ambient-ikiwiki.qcow2 \
- --dependencies ~/.ikiwiki/ \
- --cache "$cache" \
--log ~/tmp/ambient/log \
- "$srcdir"
+ "$tmp/build.yaml"
# Remove the script installed one.
rm "$script"