revert to minimal config

This commit is contained in:
Sinan Ta 2024-01-18 09:12:54 +01:00
parent 5910978b72
commit aba925acac
2 changed files with 15 additions and 22 deletions

View File

@ -10,24 +10,17 @@ deploy:
variables:
TEST_BUILDVERSION: testing-build-cache-${CI_PIPELINE_ID}
script:
- cat .tmp/hello-world.txt || true
- mkdir -p .tmp
- ls -al /tmp
- echo `pwd`
- mv .gradleBuildCache/ /tmp/.gradleBuildCache/ || true
# - cat .tmp/hello-world.txt || true
# - mv .gradleBuildCache/ /tmp/.gradleBuildCache/ || true
- echo "Building with gradle version ${TEST_BUILDVERSION}"
- gradle -Pversion=${TEST_BUILDVERSION} publish
- gradle bootBuildImage --publishImage -PbuildbootDockerHostNetwork=true -Pversion=${TEST_BUILDVERSION}
after_script:
- mkdir -p .gradleBuildCache
- ls -al .tmp/
- ls -al /tmp
- ls -al
- ls -al `pwd`/.gradle
- du -sh `pwd`/.gradle/* | sort -h
- du -sh `pwd`/.tmp/.gradle/* | sort -h
- mv /tmp/.gradleBuildCache/ .gradleBuildCache/ || true
- rm .tmp/.gradle/caches/modules-2/gc.properties .tmp/.gradle/caches/modules-2/modules-2.lock
# - mv /tmp/.gradleBuildCache/ .gradleBuildCache/ || true
- rm .gradle/caches/modules-2/gc.properties .gradle/caches/modules-2/modules-2.lock
- echo "hello-world" > .tmp/hello-world.txt
artifacts:
reports:

View File

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