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
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
Factory
Resin
Server
Commits
bae23629
Commit
bae23629
authored
3 years ago
by
Hugo SUBTIL
Browse files
Options
Downloads
Patches
Plain Diff
feat(cicd): rework on automation. Add feature and tag build. Better handling of dependencie proxy
parent
1fb3c7f2
No related branches found
Branches containing commit
Tags
v1.15.0
Tags containing commit
2 merge requests
!125
1.14
,
!119
Feat/cicd rework
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+35
-4
35 additions, 4 deletions
.gitlab-ci.yml
with
35 additions
and
4 deletions
.gitlab-ci.yml
+
35
−
4
View file @
bae23629
...
@@ -4,10 +4,19 @@ stages:
...
@@ -4,10 +4,19 @@ stages:
-
build
-
build
-
deploy
-
deploy
default
:
services
:
-
name
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:18.09-dind
alias
:
docker
variables
:
DOCKER_TLS_CERTDIR
:
'
'
DOCKER_HOST
:
tcp://docker:2375/
DOCKER_DRIVER
:
overlay2
DEPENDENCY_PROXY
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/
build
:
build
:
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:18.09
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:18.09
services
:
-
docker:18.09-dind
only
:
only
:
-
dev
-
dev
-
rec
-
rec
...
@@ -18,6 +27,30 @@ build:
...
@@ -18,6 +27,30 @@ build:
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
-
docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
-
docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
build_branch
:
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:18.09
stage
:
build
except
:
-
master
-
rec
-
dev
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
:
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:18.09
services
:
-
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/:18.09-dind
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 .
-
docker push "$CI_REGISTRY_IMAGE/tags:$CI_COMMIT_TAG"
deploy_dev
:
deploy_dev
:
stage
:
deploy
stage
:
deploy
tags
:
tags
:
...
@@ -85,8 +118,6 @@ test:
...
@@ -85,8 +118,6 @@ test:
mr
:
mr
:
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:18.09
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:18.09
services
:
-
docker:18.09-dind
stage
:
build
stage
:
build
only
:
only
:
-
merge_requests
-
merge_requests
...
...
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