Skip to content

Commit 4a59147

Browse files
committed
Uses tmpdir for building GHC & adds secrets
1 parent b8d5b50 commit 4a59147

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
.direnv
2-
tmp
2+
.tmp
3+
authfile.json
4+
secrets

ghc/builder.sh

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,12 @@ buildah config \
191191
#
192192
# On systems where `/var/tmp` is mounted as `tmpfs`, this can cause `buildah` to
193193
# run out of space.
194-
#
195-
# In this case, create some `./tmp` directory and use it with `TMPDIR=./tmp`
196-
# before running `buildah commit`.
197-
#
198-
# e.g. Uncomment the following:
199-
#
200194
mkdir -p ./tmp
201195
TMPDIR=./tmp \
202-
buildah \
203-
--signature-policy=./policy.json \
204-
commit --rm "${container}" "${image}:${ghc_version}"
196+
image_id=$(
197+
buildah \
198+
--signature-policy=./policy.json \
199+
commit --rm "${container}" "${image}:${ghc_version}"
200+
)
201+
rm -rf ./tmp
202+
echo "${image_id}"

0 commit comments

Comments
 (0)