Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: aaedff1605c9dd1167b6c17c979faba7733f569d (plain) (blame)
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
image: registry.forge.orange-labs.fr/org.eclipse.om2m/om2m/com.orange.om2m.docker.builder:0.0.5

cache:
  paths:
    - .m2

stages:
  - build
  - test
  - deploy


build:
  stage: build
  script: 
    - "nohup dockerd&"
    - "mvn clean install -Dmaven.repo.local=./.m2/repository -B -s /root/.m2/settings.xml"
  tags:
    - docker-privileged
    - rsc
    - shared
    
deploy:
  stage: deploy
  script: 
    - "nohup dockerd&"
    - "mvn deploy -B -Dmaven.repo.local=./.m2/repository -s /root/.m2/settings.xml -DaltDeploymentRepository=inhouse.snapshot::default::http://maven2.rd.francetelecom.fr/proxy/repository/inhouse.snapshot -Drepo=${CI_COMMIT_REF_NAME} -Pdocker"
    - "rm -fr .m2"
  tags:
    - docker-privileged
    - rsc
    - shared

Back to the top