make gitlab cache always be saved
authorJacob Lifshay <programmerjake@gmail.com>
Mon, 4 Apr 2022 06:57:56 +0000 (23:57 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Mon, 4 Apr 2022 06:57:56 +0000 (23:57 -0700)
syntax described in top comment in:
https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27172

found here:
https://gitlab.com/gitlab-org/gitlab/-/issues/18969#note_811311064

.gitlab-ci.yml

index 1643b9ae7b52930edf9ed5307d98b8c4577f1bc2..0937fc21f5e148696f4456872083ed7f47ecc4e1 100644 (file)
@@ -1,6 +1,7 @@
 image: debian:10
 
 cache:
+    when: always
     paths:
         - ccache