kotlin-crawler-app-bom/.gitlab-ci.yml

31 lines
607 B
YAML
Raw Normal View History

2021-02-21 14:08:22 +01:00
# Based on https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Gradle.gitlab-ci.yml
2023-04-08 15:39:06 +02:00
image: gradle:jdk19
2021-02-21 14:08:22 +01:00
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
build:
stage: build
script: gradle --build-cache assemble
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- build
- .gradle
2021-02-21 14:38:16 +01:00
artifact:
stage: deploy
script: gradle publish
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
2021-02-21 14:38:16 +01:00
cache:
key: "$CI_COMMIT_REF_NAME"
policy: pull-push
paths:
- build
- .gradle