Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mailer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
web-et-numerique-internet
data.grandlyon.com
web-portal
components
services
mailer
Commits
113a1a93
There was a problem fetching the pipeline summary.
Commit
113a1a93
authored
6 years ago
by
FORESTIER Fabien
Browse files
Options
Downloads
Patches
Plain Diff
Add management for docker registry image
parent
d92e1fdd
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+16
-13
16 additions, 13 deletions
.gitlab-ci.yml
docker-compose.yml
+4
-3
4 additions, 3 deletions
docker-compose.yml
with
20 additions
and
16 deletions
.gitlab-ci.yml
+
16
−
13
View file @
113a1a93
...
...
@@ -8,7 +8,10 @@ build_development:
-
master
script
:
-
export NODE_ENV=DEV
-
docker-compose --project-name service-email-dev build
-
export TAG=dev
-
docker-compose build
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker-compose push
deploy_development
:
stage
:
deploy
...
...
@@ -16,22 +19,22 @@ deploy_development:
-
master
script
:
-
export NODE_ENV=DEV
-
docker-compose --project-name service-email-dev up -d
build_staging
:
stage
:
build
only
:
-
staging
script
:
-
export NODE_ENV=REC
-
sed -i 's/DEV_/REC_/g' docker-compose.yml
-
docker-compose --project-name service-email-rec build
-
export TAG=dev
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker-compose pull
-
docker-compose --project-name service-email-${TAG} up -d
deploy_staging
:
stage
:
deploy
only
:
-
staging
-
master
when
:
manual
script
:
-
export TAG=staging
-
export NODE_ENV=REC
-
sed -i 's/DEV_/REC_/g' docker-compose.yml
-
docker-compose --project-name service-email-rec up -d
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
TAG=dev docker-compose pull
-
docker tag $CI_REGISTRY/refonte-data/service-email:dev $CI_REGISTRY/refonte-data/service-email:${TAG}
-
docker push $CI_REGISTRY/refonte-data/service-email:${TAG}
-
docker-compose --project-name service-email-${TAG} up -d
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
4
−
3
View file @
113a1a93
...
...
@@ -2,8 +2,9 @@ version: '3.1'
services
:
service-email
:
container_name
:
service-email-${TAG}
build
:
.
container_name
:
service-email
-
${
NODE_ENV
}
image
:
registry.alpha.grandlyon.com/refonte-data/
service-email
:
${
TAG
}
ports
:
-
${DEV_SERVICE_EMAIL_PORT}:3000
environment
:
...
...
@@ -14,9 +15,9 @@ services:
restart
:
unless-stopped
rabbitmq
:
image
:
'
rabbitmq:3-management-alpine'
container_name
:
rabbitmq-${
NODE_ENV
}
container_name
:
rabbitmq-${
TAG
}
ports
:
-
${DEV_RABBITMQ_STANDARD_PORT}:5672
# standar port for communication
-
${DEV_RABBITMQ_STANDARD_PORT}:5672
# standar
d
port for communication
-
${DEV_RABBITMQ_INTERFACE_PORT}:15672
# graphique interface
environment
:
-
RABBITMQ_DEFAULT_USER=${DEV_RABBITMQ_USER}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment