move cache to pwd

This commit is contained in:
sinan.ta@knecon.com 2024-01-12 11:28:42 +01:00
parent 2e510dca45
commit 608d3ad291
2 changed files with 7 additions and 3 deletions

View File

@ -9,12 +9,16 @@ deploy:
- dind
variables:
TEST_BUILDVERSION: testing-build-cache-${CI_PIPELINE_ID}
before_script:
- mv gradle-build-cache /tmp/.gradleBuildCache/ || true
script:
- ls /tmp/
- ls /
- pwd
- echo "Building with gradle version ${TEST_BUILDVERSION}"
- gradle -Pversion=${TEST_BUILDVERSION} publish
- gradle bootBuildImage --publishImage -PbuildbootDockerHostNetwork=true -Pversion=${TEST_BUILDVERSION}
after_script:
- mv /tmp/.gradleBuildCache/ gradle-build-cache || true
artifacts:
reports:
dotenv: version.env

View File

@ -82,13 +82,13 @@ tasks.named<BootBuildImage>("bootBuildImage") {
buildCache {
bind {
source.set(".gradleBuildCache/cache-${project.name}.build")
source.set("/tmp/.gradleBuildCache/cache-${project.name}.build")
}
}
launchCache {
bind {
source.set(".gradleBuildCache/cache-${project.name}.launch")
source.set("/tmp/.gradleBuildCache/cache-${project.name}.launch")
}
}
}