forked from aopy/neural-activity-visualizer
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.gitlab-ci.yml
40 lines (35 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
stages:
- build
build_api_image_prod:
stage: build
only:
refs:
- main
script:
- docker build -f deployment/Dockerfile.prod -t docker-registry.ebrains.eu/neuralactivity/neo-viewer:prod .
- docker login -u $DOCKER_REGISTRY_USER -p $DOCKER_REGISTRY_SECRET docker-registry.ebrains.eu
- docker push docker-registry.ebrains.eu/neuralactivity/neo-viewer:prod
tags:
- shell-runner
build_api_image_staging:
stage: build
only:
refs:
- staging
script:
- docker build -f deployment/Dockerfile.staging -t docker-registry.ebrains.eu/neuralactivity/neo-viewer:staging .
- docker login -u $DOCKER_REGISTRY_USER -p $DOCKER_REGISTRY_SECRET docker-registry.ebrains.eu
- docker push docker-registry.ebrains.eu/neuralactivity/neo-viewer:staging
tags:
- shell-runner
build_api_image_dev:
stage: build
only:
refs:
- development
script:
- docker build -f deployment/Dockerfile.dev -t docker-registry.ebrains.eu/neuralactivity/neo-viewer:dev .
- docker login -u $DOCKER_REGISTRY_USER -p $DOCKER_REGISTRY_SECRET docker-registry.ebrains.eu
- docker push docker-registry.ebrains.eu/neuralactivity/neo-viewer:dev
tags:
- shell-runner