From 37183408340033c53725abbecdf5be19613d9d30 Mon Sep 17 00:00:00 2001 From: Sinan Ta Date: Thu, 18 Jan 2024 15:20:12 +0100 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 08457cc..eb0536e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,6 +15,7 @@ deploy: - docker login nexus.knecon.com:5001 -u ${CI_NEXUS_USER} -p ${CI_NEXUS_PASSWORD} - docker pull nexus.knecon.com:5001/ff/ocr-service-server:latest - mv .gradleBuildCache/ /tmp/.gradleBuildCache/ || true + - ls -al - echo "Building with gradle version testing-build-cache-${CI_PIPELINE_ID}" - gradle -Pversion=testing-build-cache-${CI_PIPELINE_ID} publish - gradle bootBuildImage --publishImage -PbuildbootDockerHostNetwork=true -Pversion=testing-build-cache-${CI_PIPELINE_ID} @@ -23,7 +24,7 @@ deploy: - 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 + - rm .gradle/caches/modules-2/gc.properties .gradle/caches/modules-2/modules-2.lock - docker volume ls - docker ps - docker image ls @@ -31,7 +32,7 @@ deploy: reports: dotenv: version.env cache: - # untracked: true + untracked: true key: gradle-build-cache paths: - .gradleBuildCache/