aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xaux/ci/ci-build.sh5
-rwxr-xr-xaux/guix/with-container.sh3
2 files changed, 8 insertions, 0 deletions
diff --git a/aux/ci/ci-build.sh b/aux/ci/ci-build.sh
index 396fbff..43cdb85 100755
--- a/aux/ci/ci-build.sh
+++ b/aux/ci/ci-build.sh
@@ -38,6 +38,11 @@ EOF
sh aux/ci/report.sh -n "$PROJECT" -o public
rsync -av public/ "/srv/http/$PROJECT/" --delete
+ if [ -f aux/guix/with-container.sh ]; then
+ cp "$(sh aux/guix/with-container.sh -C)"
+ "/srv/http/$PROJECT/docker-pack.tar.gz"
+ fi
+
printf "\n>>>\n>>> CI logs added as Git note."
printf "\n>>>\n>>> Run status was %s\n\n" "$STATUS"
}
diff --git a/aux/guix/with-container.sh b/aux/guix/with-container.sh
index 71e13e0..641b455 100755
--- a/aux/guix/with-container.sh
+++ b/aux/guix/with-container.sh
@@ -7,6 +7,9 @@ if [ -z "${1:-}" ]; then
elif [ "$1" = '-p' ]; then
guix time-machine --fallback -C aux/guix/pinned-channels.scm -- \
environment --fallback -m aux/guix/manifest.scm --pure -C
+elif [ "$1" = '-C' ]; then
+ guix time-machine --fallback -C aux/guix/pinned-channels.scm -- \
+ pack -f docker -S/bin=bin -m aux/guix/manifest.scm
else
guix time-machine --fallback -C aux/guix/pinned-channels.scm -- \
environment --fallback -m aux/guix/manifest.scm --pure -C \