-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
50 lines (45 loc) · 1020 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
40
41
42
43
44
45
46
47
48
49
50
test:
stage: test
image: gradle:6.8.3-jdk8
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
script:
- gradle build
except:
- tags
cache:
paths:
- .gradle/wrapper
- .gradle/caches
only:
- merge_requests
include:
- project: 'halodi/tooling/gitlab-ci-cd/templates/publish-with-gradle'
ref: 0.0.9
file: 'publish-with-gradle-vault1.7.1-gradle6.8.3-jdk8.gitlab-ci.yml'
publish-with-gradle:
variables:
PROJECT_PATH: .
VAULT_ADDRESS: $VAULT_ADDR
OPEN_SOURCE: "true"
move-to-staging:
variables:
VAULT_ADDRESS: $VAULT_ADDR
OPEN_SOURCE: "true"
move-to-production:
variables:
VAULT_ADDRESS: $VAULT_ADDR
OPEN_SOURCE: "true"
composition:
variables:
UPSTREAM_PROJECT: $CI_PROJECT_NAME
UPSTREAM_BRANCH: $CI_COMMIT_REF_NAME
UPSTREAM_SHA: $CI_COMMIT_SHA
stage: .post
trigger:
project: halodi/controls/composition/ros2-composition
branch: main
strategy: depend
needs: ["test"]
only:
- merge_requests