forked from jonathanduperrier/nmpi-job-manager-app-reactjs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
28 lines (26 loc) · 953 Bytes
/
.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
stages:
- build
build_image_production:
stage: build
only:
variables:
- $CI_COMMIT_BRANCH == "main"
script:
- docker build -f deployment/Dockerfile.prod -t docker-registry.ebrains.eu/neuromorphic/nmpi_job_manager:prod .
- echo $DOCKER_REGISTRY_USER
- docker login -u $DOCKER_REGISTRY_USER -p $DOCKER_REGISTRY_SECRET docker-registry.ebrains.eu
- docker push docker-registry.ebrains.eu/neuromorphic/nmpi_job_manager:prod
tags:
- shell-runner
build_image_staging:
stage: build
only:
variables:
- $CI_COMMIT_BRANCH == "staging"
script:
- docker build -f deployment/Dockerfile.staging -t docker-registry.ebrains.eu/neuromorphic/nmpi_job_manager:staging .
- echo $DOCKER_REGISTRY_USER
- docker login -u $DOCKER_REGISTRY_USER -p $DOCKER_REGISTRY_SECRET docker-registry.ebrains.eu
- docker push docker-registry.ebrains.eu/neuromorphic/nmpi_job_manager:staging
tags:
- shell-runner