Try to cache and build artifact
This commit is contained in:
parent
0c9cefc347
commit
d967c98440
1 changed files with 21 additions and 5 deletions
|
@ -1,18 +1,21 @@
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- build
|
- build
|
||||||
|
# - image
|
||||||
|
# - publish
|
||||||
|
|
||||||
.img: &img
|
.img: &img
|
||||||
image: openjdk:22-jdk-slim
|
image: openjdk:22-jdk-slim
|
||||||
|
cache:
|
||||||
|
- key: ${CI_COMMIT_REF_SLUG}
|
||||||
|
- paths:
|
||||||
|
- /var/cache/apt
|
||||||
|
- .gradle/wrapper
|
||||||
|
- .gradle/caches
|
||||||
before_script:
|
before_script:
|
||||||
- echo "___________________START_before_script________________________"
|
- echo "___________________START_before_script________________________"
|
||||||
- echo ${CI_COMMIT_REF_SLUG}
|
- echo ${CI_COMMIT_REF_SLUG}
|
||||||
- apt-get update && apt-get -qqy upgrade
|
- apt-get update && apt-get -qqy upgrade
|
||||||
cache:
|
|
||||||
- key: ${CI_COMMIT_REF_SLUG}
|
|
||||||
- paths:
|
|
||||||
- .gradle/wrapper
|
|
||||||
- .gradle/caches
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
<<: *img
|
<<: *img
|
||||||
|
@ -25,7 +28,20 @@ build:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- ./gradlew clean build -Pvaadin.productionMode
|
- ./gradlew clean build -Pvaadin.productionMode
|
||||||
|
artifacts:
|
||||||
|
name: "ModeratorElection.jar"
|
||||||
|
paths:
|
||||||
|
- build/libs/
|
||||||
|
exclude:
|
||||||
|
- build/libs/ModeratorElection-plain.jar
|
||||||
after_script:
|
after_script:
|
||||||
- echo "_____________end_________________"
|
- echo "_____________end_________________"
|
||||||
|
|
||||||
|
image:
|
||||||
|
stage: image
|
||||||
|
script:
|
||||||
|
-
|
||||||
|
|
||||||
|
publish:
|
||||||
|
stage: publish
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue