Update .gitlab-ci.yml file

This commit is contained in:
Sinan Ta 2024-01-18 10:40:37 +01:00
parent aba925acac
commit 736fa834aa

View File

@ -10,18 +10,16 @@ deploy:
variables:
TEST_BUILDVERSION: testing-build-cache-${CI_PIPELINE_ID}
script:
# - 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
# - mkdir -p .gradleBuildCache
- ls -al `pwd`/.gradle
- du -sh `pwd`/.gradle/* | sort -h
# - 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:
dotenv: version.env