Move docs exporting to a separate script in the hopes it'll actually work there.
All checks were successful
build / test (push) Successful in 4m57s
build / docs (push) Successful in 1m12s

This commit is contained in:
Dan Helfman 2024-10-27 14:48:17 -07:00
commit 9b623a8a8e
2 changed files with 12 additions and 7 deletions

11
scripts/export-docs-from-image Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
set -e
docs_container_id=$(podman create "$IMAGE_NAME")
podman cp $docs_container_id:/usr/share/nginx/html - > borgmatic-docs-dump.tar
tar xf borgmatic-docs-dump.tar
rm borgmatic-docs-dump.tar
mv html borgmatic-docs
tar cfz borgmatic-docs.tar.gz borgmatic-docs
podman rm --volumes $docs_container_id