24 lines
579 B
YAML
24 lines
579 B
YAML
include:
|
|
- project: 'gitlab/gitlab'
|
|
ref: 'gradle-cache'
|
|
file: 'ci-templates/gradle_java.yml'
|
|
|
|
deploy:
|
|
stage: deploy
|
|
tags:
|
|
- dind
|
|
variables:
|
|
TEST_BUILDVERSION: "testing-build-cache"
|
|
script:
|
|
- ls /tmp/
|
|
- echo "Building with gradle version ${TEST_BUILDVERSION}"
|
|
- gradle -Pversion=${TEST_BUILDVERSION} publish
|
|
- gradle bootBuildImage --publishImage -PbuildbootDockerHostNetwork=true -Pversion=${TEST_BUILDVERSION}
|
|
artifacts:
|
|
reports:
|
|
dotenv: version.env
|
|
cache:
|
|
key: gradle-build-cache
|
|
paths:
|
|
- /tmp/.gradleCache
|