gitlab ci: fix build cache

This commit is contained in:
Bixilon 2022-11-14 16:08:56 +01:00
parent 5542635b9e
commit 243769bf26
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -4,7 +4,7 @@ variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
- export GRADLE_USER_HOME=`pwd`/.gradle_home
stages:
- build
@ -17,19 +17,20 @@ cache:
policy: push
paths:
- build
- .gradle
- key:
files:
- "*.kts"
- "gradle.properties"
policy: pull-push
paths:
- .gradle/caches
- .gradle_home/caches
- key:
files:
- "gradle/wrapper/gradle-wrapper.properties"
policy: pull-push
paths:
- .gradle/wrapper
- .gradle_home/wrapper
build:
stage: build