Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Factory
Resin
Server
Commits
5eed2e0a
Commit
5eed2e0a
authored
11 months ago
by
Bastien DUMONT
Browse files
Options
Downloads
Patches
Plain Diff
ci(speed): parallelize jobs
parent
3d04d699
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!420
V3.2.0
,
!408
ci(speed): parallelize jobs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+21
-14
21 additions, 14 deletions
.gitlab-ci.yml
with
21 additions
and
14 deletions
.gitlab-ci.yml
+
21
−
14
View file @
5eed2e0a
...
...
@@ -13,44 +13,46 @@ variables:
DEPENDENCY_PROXY
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/
build
:
stage
:
build
only
:
-
dev
-
rec
-
master
needs
:
[]
variables
:
DOCKER_TLS_CERTDIR
:
'
'
DOCKER_HOST
:
tcp://docker:2375/
DOCKER_DRIVER
:
overlay2
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:18.09
only
:
-
dev
-
rec
-
master
stage
:
build
script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
-
docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
build_branch
:
stage
:
build
only
:
-
merge_requests
needs
:
[]
variables
:
DOCKER_TLS_CERTDIR
:
'
'
DOCKER_HOST
:
tcp://docker:2375/
DOCKER_DRIVER
:
overlay2
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:18.09
stage
:
build
only
:
-
merge_requests
script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker build --pull -t "$CI_REGISTRY_IMAGE/feat:$CI_COMMIT_REF_SLUG" --build-arg conf=prod .
-
docker push "$CI_REGISTRY_IMAGE/feat:$CI_COMMIT_REF_SLUG"
build-release
:
stage
:
build
only
:
-
tags
variables
:
DOCKER_TLS_CERTDIR
:
'
'
DOCKER_HOST
:
tcp://docker:2375/
DOCKER_DRIVER
:
overlay2
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:18.09
stage
:
build
only
:
-
tags
script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker build --pull -t "$CI_REGISTRY_IMAGE/tags:$CI_COMMIT_TAG" --build-arg conf=prod .
...
...
@@ -62,6 +64,8 @@ deploy_dev:
-
deploy
only
:
-
dev
needs
:
-
build
script
:
-
cd /home/mps/ram
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
...
...
@@ -74,6 +78,10 @@ deploy_dev:
test
:
stage
:
test
only
:
-
dev
-
merge_requests
needs
:
[]
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/node:18.17.0
services
:
-
name
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/elasticsearch:7.16.2
...
...
@@ -93,14 +101,12 @@ test:
reports
:
junit
:
-
junit.xml
only
:
-
dev
-
merge_requests
sonarqube
:
stage
:
quality
only
:
-
dev
needs
:
[]
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/sonarsource/sonar-scanner-cli:4
variables
:
SONAR_USER_HOME
:
'
${CI_PROJECT_DIR}/.sonar'
# Defines the location of the analysis task cache
...
...
@@ -127,6 +133,7 @@ sonarqube-mr:
stage
:
quality
only
:
-
merge_requests
needs
:
[]
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/sonarsource/sonar-scanner-cli:4
variables
:
SONAR_USER_HOME
:
'
${CI_PROJECT_DIR}/.sonar'
# Defines the location of the analysis task cache
...
...
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