-
Notifications
You must be signed in to change notification settings - Fork 20
/
.gitlab-ci.yml
39 lines (34 loc) · 932 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# DinD service is required for Testcontainers
services:
- name: docker:dind
# explicitly disable tls to avoid docker startup interruption
command: ["--tls=false"]
variables:
# Instruct Testcontainers to use the daemon of DinD, use port 2735 for non-tls connections.
DOCKER_HOST: "tcp://docker:2375"
# Instruct Docker not to start over TLS.
DOCKER_TLS_CERTDIR: ""
# Improve performance with overlayfs.
DOCKER_DRIVER: overlay2
# `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work.
image: eclipse-temurin:21-jdk-focal
cache:
key: gradle-cache-key
paths:
- .gradle/wrapper
- .gradle/caches
policy: pull
test:
stage: test
script:
- './gradlew build'
only:
changes:
- "*.gradle"
- gradle.properties
cache:
key: gradle-cache-key
paths:
- .gradle/wrapper
- .gradle/caches
policy: push