-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitlab-ci-ebrains.yml
53 lines (50 loc) · 2.5 KB
/
.gitlab-ci-ebrains.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
50
51
52
53
stages:
- build
- test
- deploy
build:
stage: build
tags:
- shell-runner
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- curl -L "https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-linux-x86_64" -o ./docker-compose
- chmod +x docker-compose
script:
- docker build . -f ./docker/simulators/Dockerfile_TVB -t insite-tvb
- docker build . -f ./docker/simulators/Dockerfile_Arbor -t insite-arbor
- docker build . -f ./docker/simulators/Dockerfile_NEST -t insite-nest
- sleep 2
- ./docker-compose -f ./test/run-tests.yml up --build --exit-code-from pytest
deploy:
stage: deploy
tags:
- shell-runner
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- docker login -u "robot\$insite+registry_pusher" -p $REGISTRY_TOKEN docker-registry.ebrains.eu/insite/insite-tvb
script:
- docker build . -f ./docker/simulators/Dockerfile_TVB -t insite-tvb
- docker build . -f ./docker/simulators/Dockerfile_Arbor -t insite-arbor
- docker build . -f ./docker/simulators/Dockerfile_NEST -t insite-nest
- docker build . -f ./docker/Dockerfile_AccessNode -t insite-access-node
- docker build . -f ./docker/examples/Dockerfile_TVBExample -t insite-tvb-example
- docker build . -f ./docker/examples/Dockerfile_NestExample -t insite-nest-example
- docker build . -f ./docker/examples/Dockerfile_ArborRingExample -t insite-arbor-example-ring
#
- docker tag insite-access-node docker-registry.ebrains.eu/insite/insite-access-node
- docker tag insite-tvb docker-registry.ebrains.eu/insite/insite-tvb
- docker tag insite-arbor docker-registry.ebrains.eu/insite/insite-arbor
- docker tag insite-nest docker-registry.ebrains.eu/insite/insite-nest
- docker tag insite-nest-example docker-registry.ebrains.eu/insite/insite-nest-example
- docker tag insite-arbor-example-ring docker-registry.ebrains.eu/insite/insite-arbor-example-ring
- docker tag insite-tvb-example docker-registry.ebrains.eu/insite/insite-tvb-example
- docker push docker-registry.ebrains.eu/insite/insite-access-node
- docker push docker-registry.ebrains.eu/insite/insite-tvb
- docker push docker-registry.ebrains.eu/insite/insite-arbor
- docker push docker-registry.ebrains.eu/insite/insite-nest
- docker push docker-registry.ebrains.eu/insite/insite-tvb-example
- docker push docker-registry.ebrains.eu/insite/insite-arbor-example-ring
- docker push docker-registry.ebrains.eu/insite/insite-nest-example