diff options
author | EuAndreh <eu@euandre.org> | 2021-08-13 23:09:12 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-08-13 23:09:12 -0300 |
commit | a6a5d25c3f91cbcb9018718c15fae2726bc7ea41 (patch) | |
tree | aea107638db25359c08aed86be78d9920983911e | |
parent | tests/lib.sh: Make error reporting consistent (diff) | |
download | git-permalink-a6a5d25c3f91cbcb9018718c15fae2726bc7ea41.tar.gz git-permalink-a6a5d25c3f91cbcb9018718c15fae2726bc7ea41.tar.xz |
aux/ci/ci-build.sh: Publish Docker image of the latest environment
-rwxr-xr-x | aux/ci/ci-build.sh | 5 | ||||
-rwxr-xr-x | aux/guix/with-container.sh | 3 |
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 \ |