Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
web-et-numerique
web-et-numerique-internet
data.grandlyon.com
web-portal
components
services
mailer
Commits
430dfb60
Commit
430dfb60
authored
Aug 25, 2020
by
Fabien Forestier
Browse files
Adding build tag on jobs
parent
919f857b
Pipeline
#6890
passed with stage
in 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
430dfb60
...
@@ -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
:
...
@@ -25,19 +27,23 @@ sonarqube:
...
@@ -25,19 +27,23 @@ sonarqube:
build_development
:
build_development
:
stage
:
build
stage
:
build
tags
:
-
build
only
:
only
:
-
development
-
development
script
:
script
:
-
export TAG=$CI_COMMIT_SHORT_SHA
-
export TAG=$CI_COMMIT_SHORT_SHA
-
echo ${TAG}
-
echo ${TAG}
-
export MAIL_SERVICE_BIND_PORT=3000
-
export MAIL_SERVICE_BIND_PORT=3000
-
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/327/trigger/pipeline
"
-
'
curl
-X
POST
-F
token=$CI_JOB_TOKEN
-F
ref=master
-F
variables[TAG]=${TAG}
https://forge.grandlyon.com/api/v4/projects/327/trigger/pipeline
'
build_release
:
build_release
:
stage
:
build
stage
:
build
tags
:
-
build
only
:
only
:
-
tags
-
tags
script
:
script
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment