move cache to pwd
This commit is contained in:
parent
2e510dca45
commit
608d3ad291
@ -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
|
||||
|
||||
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user