Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
csentry
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ICS Control System Infrastructure
csentry
Commits
d74a5d56
Commit
d74a5d56
authored
4 years ago
by
Benjamin Bertrand
Browse files
Options
Downloads
Patches
Plain Diff
Improve gitlab-ci.yml
parent
e3d17cdf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-12
5 additions, 12 deletions
.gitlab-ci.yml
with
5 additions
and
12 deletions
.gitlab-ci.yml
+
5
−
12
View file @
d74a5d56
---
include
:
-
'
https://gitlab.esss.lu.se/ics-infrastructure/gitlab-ci-yml/raw/master/PreCommit.gitlab-ci.yml'
.runner_tags
:
&runner_tags
tags
:
-
docker
-
remote
:
"
https://gitlab.esss.lu.se/ics-infrastructure/gitlab-ci-yml/raw/master/PreCommit.gitlab-ci.yml"
variables
:
CONTAINER_TEST_IMAGE
:
"
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME"
...
...
@@ -22,11 +18,14 @@ stages:
-
release
-
deploy
default
:
tags
:
-
docker
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
build
:
<<
:
*runner_tags
stage
:
build
image
:
docker:latest
script
:
...
...
@@ -35,7 +34,6 @@ build:
-
docker push "$CONTAINER_TEST_IMAGE"
test
:
<<
:
*runner_tags
stage
:
test
image
:
"
$CONTAINER_TEST_IMAGE"
services
:
...
...
@@ -57,7 +55,6 @@ test:
expire_in
:
1 hour
analyse
:
<<
:
*runner_tags
stage
:
analyse
image
:
registry.esss.lu.se/ics-docker/sonar-scanner:3
before_script
:
[]
...
...
@@ -65,7 +62,6 @@ analyse:
-
sonar-scanner -Dsonar.login=$SONARQUBE_TOKEN -Dsonar.projectVersion=$CI_COMMIT_REF_NAME
release-image
:
<<
:
*runner_tags
stage
:
release
image
:
docker:latest
dependencies
:
[]
...
...
@@ -77,7 +73,6 @@ release-image:
-
tags
deploy-staging
:
<<
:
*runner_tags
stage
:
deploy
image
:
registry.esss.lu.se/ics-docker/tower-cli
before_script
:
[]
...
...
@@ -97,7 +92,6 @@ deploy-staging:
-
tags
pages
:
<<
:
*runner_tags
stage
:
deploy
image
:
"
$CONTAINER_RELEASE_IMAGE"
dependencies
:
[]
...
...
@@ -115,7 +109,6 @@ pages:
-
tags
deploy-production
:
<<
:
*runner_tags
stage
:
deploy
image
:
registry.esss.lu.se/ics-docker/tower-cli
before_script
:
[]
...
...
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