Skip to content
Snippets Groups Projects
Commit 46a49881 authored by Matthew Pickering's avatar Matthew Pickering
Browse files

ci: Always store cache (and use cache for build-repo)

It seems that despite the documentation mentioning nothing about it, you
can always save a cache even if a job fails. Which is good for us as we
are caching the nix stuff, which often works when the whole job fails.

See: https://gitlab.com/gitlab-org/gitlab/-/issues/18969

The other option here (which introduces some more complexity) is to
separate the building of the tools into a separate job which then each
runner will download and unpack.
parent 6d17dcca
No related branches found
No related tags found
No related merge requests found
......@@ -169,6 +169,7 @@ test-9.4:
cache:
key: build-HEAD
when: always
paths:
- store.nar
......@@ -218,6 +219,12 @@ test-9.4:
update-repo:
stage: update-repo
cache:
key: build-HEAD
when: always
paths:
- store.nar
tags:
- x86_64-linux
- head.hackage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment