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 - dind
variables: variables:
TEST_BUILDVERSION: testing-build-cache-${CI_PIPELINE_ID} TEST_BUILDVERSION: testing-build-cache-${CI_PIPELINE_ID}
before_script:
- mv gradle-build-cache /tmp/.gradleBuildCache/ || true
script: script:
- ls /tmp/ - ls /tmp/
- ls / - pwd
- echo "Building with gradle version ${TEST_BUILDVERSION}" - echo "Building with gradle version ${TEST_BUILDVERSION}"
- gradle -Pversion=${TEST_BUILDVERSION} publish - gradle -Pversion=${TEST_BUILDVERSION} publish
- gradle bootBuildImage --publishImage -PbuildbootDockerHostNetwork=true -Pversion=${TEST_BUILDVERSION} - gradle bootBuildImage --publishImage -PbuildbootDockerHostNetwork=true -Pversion=${TEST_BUILDVERSION}
after_script:
- mv /tmp/.gradleBuildCache/ gradle-build-cache || true
artifacts: artifacts:
reports: reports:
dotenv: version.env dotenv: version.env

View File

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