forked from LeonMangler/SuperVanish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
34 lines (29 loc) · 804 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
image: maven:3-jdk-9-slim
cache:
paths:
- .m2/repository
variables:
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
stages:
- build
- deploy
build:
stage: build
script:
- apt update
- apt install wget -y
- wget https://gitlab.com/cubekrowd/mavenrepo/raw/master/build2.sh
- bash build2.sh
artifacts:
paths:
- "*.jar"
deploy:
stage: deploy
script:
- apt update
- apt install wget -y
- wget https://gitlab.com/cubekrowd/mavenrepo/raw/master/deploy1.sh
- bash deploy1.sh
only:
- master