-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
49 lines (45 loc) · 912 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
variables:
MAVEN_CLI_OPTS: "clean"
build:
stage: build
script:
- mvn $MAVEN_CLI_OPTS compile
tags:
- ugrad
test:
stage: test
script:
- mvn verify
artifacts:
when: always
paths:
- target/surefire-reports/TEST-*.xml
reports:
junit:
- target/surefire-reports/TEST-*.xml
tags:
- ugrad
deploy_develop:
stage: deploy
image: ruby:2.6
script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
- dpl --provider=heroku --app=$HEROKU_APP_NAME --api-key=$HEROKU_API_KEY
only:
- develop
tags:
- dalfcs_docker_kvm
deploy_release:
stage: deploy
image: ruby:2.6
script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
- dpl --provider=heroku --app=$HEROKU_APP_NAME_PROD --api-key=$HEROKU_API_KEY_PROD
only:
- release/1.0.0
tags:
- dalfcs_docker_kvm