.gitlab-ci.yml 3.66 KB
Newer Older
Stefan Dähling's avatar
add ci  
Stefan Dähling committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
stages:
  - build
  - test
  - deploy

amsbuild:
  stage: build
  script:
    - export GOPATH=$HOME/go
    - docker build -f build/docker/ams/Dockerfile -t ams .

agencybuild:
  stage: build
  script:
    - export GOPATH=$HOME/go
    - docker build -f build/docker/agency/Dockerfile -t agency .

Stefan Dähling's avatar
Stefan Dähling committed
18
19
20
21
22
23
benchmarkbuild:
  stage: build
  script:
    - export GOPATH=$HOME/go
    - docker build -f build/docker/benchmark/Dockerfile -t benchmark .

Stefan Dähling's avatar
add ci  
Stefan Dähling committed
24
25
26
27
28
29
30
31
32
33
34
loggerbuild:
  stage: build
  script:
    - export GOPATH=$HOME/go
    - docker build -f build/docker/logger/Dockerfile -t logger .

dfbuild:
  stage: build
  script:
    - export GOPATH=$HOME/go
    - docker build -f build/docker/df/Dockerfile -t df .
Stefan Dähling's avatar
Stefan Dähling committed
35
36
37
38
39
40
41

pnpbuild:
  stage: build
  script:
    - export GOPATH=$HOME/go
    - docker build -f build/docker/plugnplay/Dockerfile -t plugnplay .

Stefan Dähling's avatar
Stefan Dähling committed
42
43
44
45
46
47
frontendbuild:
  stage: build
  script:
    - export GOPATH=$HOME/go
    - docker build -f build/docker/frontend/Dockerfile -t frontend .

Stefan Dähling's avatar
add ci  
Stefan Dähling committed
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
stubbuild:
  stage: build
  script:
    - export GOPATH=$HOME/go
    - cd cmd/kubestub
    - CGO_ENABLED=0 GOOS=linux go build main.go

# amstest:
#   stage: test
#   only:
#     - master
#   script:
#     - cd pkg/ams
#     - CGO_ENABLED=0 go test -coverpkg=./...

agencytest:
  stage: test
  script:
    - cd pkg/agency
    - CGO_ENABLED=0 go test -coverpkg=./...

loggertest:
  stage: test
  script:
    - cd pkg/logger
    - CGO_ENABLED=0 go test -coverpkg=./...

amsdeploy:
  stage: deploy
  only:
    - master
Stefan Dähling's avatar
Stefan Dähling committed
79
    - develop
Stefan Dähling's avatar
add ci  
Stefan Dähling committed
80
81
82
83
84
85
86
87
88
  script:
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.git.rwth-aachen.de
    - docker tag ams registry.git.rwth-aachen.de/acs/public/cloud/mas/clonemap/ams
    - docker push registry.git.rwth-aachen.de/acs/public/cloud/mas/clonemap/ams

agencydeploy:
  stage: deploy
  only:
    - master
Stefan Dähling's avatar
Stefan Dähling committed
89
    - develop
Stefan Dähling's avatar
add ci  
Stefan Dähling committed
90
  script:
Stefan Dähling's avatar
ci fix    
Stefan Dähling committed
91
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.git.rwth-aachen.de
Stefan Dähling's avatar
add ci  
Stefan Dähling committed
92
93
94
    - docker tag agency registry.git.rwth-aachen.de/acs/public/cloud/mas/clonemap/agency
    - docker push registry.git.rwth-aachen.de/acs/public/cloud/mas/clonemap/agency

Stefan Dähling's avatar
Stefan Dähling committed
95
96
97
98
benchmarkdeploy:
  stage: deploy
  only:
    - master
Stefan Dähling's avatar
Stefan Dähling committed
99
    - develop
Stefan Dähling's avatar
Stefan Dähling committed
100
101
102
103
104
  script:
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.git.rwth-aachen.de
    - docker tag benchmark registry.git.rwth-aachen.de/acs/public/cloud/mas/clonemap/benchmark
    - docker push registry.git.rwth-aachen.de/acs/public/cloud/mas/clonemap/benchmark

Stefan Dähling's avatar
add ci  
Stefan Dähling committed
105
106
107
108
loggerdeploy:
  stage: deploy
  only:
    - master
Stefan Dähling's avatar
Stefan Dähling committed
109
    - develop
Stefan Dähling's avatar
add ci  
Stefan Dähling committed
110
  script:
Stefan Dähling's avatar
ci fix    
Stefan Dähling committed
111
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.git.rwth-aachen.de
Stefan Dähling's avatar
add ci  
Stefan Dähling committed
112
113
114
115
116
117
118
    - docker tag logger registry.git.rwth-aachen.de/acs/public/cloud/mas/clonemap/logger
    - docker push registry.git.rwth-aachen.de/acs/public/cloud/mas/clonemap/logger

dfdeploy:
  stage: deploy
  only:
    - master
Stefan Dähling's avatar
Stefan Dähling committed
119
    - develop
Stefan Dähling's avatar
add ci  
Stefan Dähling committed
120
  script:
Stefan Dähling's avatar
ci fix    
Stefan Dähling committed
121
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.git.rwth-aachen.de
Stefan Dähling's avatar
add ci  
Stefan Dähling committed
122
123
    - docker tag df registry.git.rwth-aachen.de/acs/public/cloud/mas/clonemap/df
    - docker push registry.git.rwth-aachen.de/acs/public/cloud/mas/clonemap/df
Stefan Dähling's avatar
Stefan Dähling committed
124
125
126
127
128
129
130
131
132
133

pnpdeploy:
  stage: deploy
  only:
    - master
    - develop
  script:
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.git.rwth-aachen.de
    - docker tag plugnplay registry.git.rwth-aachen.de/acs/public/cloud/mas/clonemap/plugnplay
    - docker push registry.git.rwth-aachen.de/acs/public/cloud/mas/clonemap/plugnplay
Stefan Dähling's avatar
Stefan Dähling committed
134
135
136
137
138
139
140
141
142
143

frontenddeploy:
  stage: deploy
  only:
    - master
    - develop
  script:
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.git.rwth-aachen.de
    - docker tag frontend registry.git.rwth-aachen.de/acs/public/cloud/mas/clonemap/frontend
    - docker push registry.git.rwth-aachen.de/acs/public/cloud/mas/clonemap/frontend