-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
45 lines (39 loc) · 1.18 KB
/
.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
default:
image: maven:3-jdk-11
tags:
- kubernetes
before_script:
- apt-get update -qq && apt-get install -y -qq python3-pip && pip install -q s3cmd
variables:
MAVEN_CLI_OPTS: "-f com.zazuko.rdfmapping.dsl.parent --batch-mode"
stages:
- package
- publish
package:
stage: package
only:
- master
- tags
except:
- composite
script:
- "mvn $MAVEN_CLI_OPTS package"
- "ls -l com.zazuko.rdfmapping.dsl.parent/com.zazuko.rdfmapping.dsl.repository/target/"
artifacts:
paths:
- com.zazuko.rdfmapping.dsl.parent/com.zazuko.rdfmapping.dsl.repository/target/
expire_in: 60 minutes
s3-releases:
stage: publish
only:
- tags
except:
- composite
script:
- s3cmd -c config/s3cmd sync --acl-public --delete-removed com.zazuko.rdfmapping.dsl.parent/com.zazuko.rdfmapping.dsl.repository/target/repository/ s3://zazuko-download/rdf-mapping-dsl/releases/$CI_COMMIT_TAG/
s3-updates-composite:
stage: publish
only:
- composite
script:
- s3cmd -c config/s3cmd sync --acl-public --delete-removed com.zazuko.rdfmapping.dsl.parent/com.zazuko.rdfmapping.dsl.repository-composite/updates/ s3://zazuko-download/rdf-mapping-dsl/updates/