Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
query
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
proxies
query
Commits
6f847899
Commit
6f847899
authored
4 years ago
by
Fabien FORESTIER
Browse files
Options
Downloads
Plain Diff
Merge branch 'development' into 'master'
Add build tag on sonarqube job See merge request
!10
parents
352ec07a
a2e21d4a
No related branches found
No related tags found
1 merge request
!10
Add build tag on sonarqube job
Pipeline
#6875
passed
4 years ago
Stage: sonar-analysis
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-3
5 additions, 3 deletions
.gitlab-ci.yml
with
5 additions
and
3 deletions
.gitlab-ci.yml
+
5
−
3
View file @
6f847899
...
@@ -7,6 +7,8 @@ variables:
...
@@ -7,6 +7,8 @@ variables:
sonarqube
:
sonarqube
:
stage
:
sonar-analysis
stage
:
sonar-analysis
tags
:
-
build
only
:
only
:
-
master
-
master
before_script
:
before_script
:
...
@@ -32,10 +34,10 @@ build_development:
...
@@ -32,10 +34,10 @@ build_development:
script
:
script
:
-
export TAG=$CI_COMMIT_SHORT_SHA
-
export TAG=$CI_COMMIT_SHORT_SHA
-
export PROXY_QUERY_BIND_PORT=9002
-
export PROXY_QUERY_BIND_PORT=9002
-
docker-compose build
-
docker-compose build
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker-compose push
-
docker-compose push
-
"
curl
-X
POST
-F
token=$CI_JOB_TOKEN
-F
ref=master
-F
variables[TAG]=${TAG}
https://forge.grandlyon.com/api/v4/projects/336/trigger/pipeline
"
-
'
curl
-X
POST
-F
token=$CI_JOB_TOKEN
-F
ref=master
-F
variables[TAG]=${TAG}
https://forge.grandlyon.com/api/v4/projects/336/trigger/pipeline
'
build_release
:
build_release
:
stage
:
build
stage
:
build
...
@@ -48,4 +50,4 @@ build_release:
...
@@ -48,4 +50,4 @@ build_release:
-
export PROXY_QUERY_BIND_PORT=9002
-
export PROXY_QUERY_BIND_PORT=9002
-
docker-compose build
-
docker-compose build
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker-compose push
-
docker-compose push
\ No newline at end of file
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