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
systemes-dinformation
project-template
SDK-GO
Commits
2f98f99f
Commit
2f98f99f
authored
Sep 02, 2020
by
Alexis POYEN
Browse files
Fix : yaml indentation
parent
d4a0b725
Pipeline
#7084
passed with stage
in 4 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
2f98f99f
...
...
@@ -17,40 +17,40 @@ variables:
GIT_STRATEGY
:
clone
GIT_DEPTH
:
0
stages
:
-
build-and-test-with-sonar-concurrently
stages
:
-
build-and-test-with-sonar-concurrently
build-master
:
stage
:
build-and-test-with-sonar-concurrently
script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
DOCKER_BUILDKIT=1 docker build --pull -t "$CI_REGISTRY_IMAGE" .
-
docker push "$CI_REGISTRY_IMAGE"
only
:
-
master
build-master
:
stage
:
build-and-test-with-sonar-concurrently
script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
DOCKER_BUILDKIT=1 docker build --pull -t "$CI_REGISTRY_IMAGE" .
-
docker push "$CI_REGISTRY_IMAGE"
only
:
-
master
build
:
stage
:
build-and-test-with-sonar-concurrently
script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
DOCKER_BUILDKIT=1 docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
-
docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
except
:
-
master
build
:
stage
:
build-and-test-with-sonar-concurrently
script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
DOCKER_BUILDKIT=1 docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
-
docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
except
:
-
master
sonarqube
:
stage
:
build-and-test-with-sonar-concurrently
image
:
registry.forge.grandlyon.com/apoyen/sonnar-scanner-gl:master
script
:
-
go test ./... -coverprofile=coverage.out
-
>
sonar-scanner
-Dsonar.projectName=${CI_PROJECT_NAME}
-Dsonar.projectVersion=1.0
-Dsonar.sourceEncoding=UTF-8
-Dsonar.projectBaseDir=.
-Dsonar.host.url=${SONAR_URL}
-Dsonar.projectKey=${SONAR_PROJECT_KEY}
-Dsonar.login=${SONAR_TOKEN}
-Dsonar.go.coverage.reportPaths=./coverage.out
-Dsonar.exclusions=**/*_test.go
sonarqube
:
stage
:
build-and-test-with-sonar-concurrently
image
:
registry.forge.grandlyon.com/apoyen/sonnar-scanner-gl:master
script
:
-
go test ./... -coverprofile=coverage.out
-
>
sonar-scanner
-Dsonar.projectName=${CI_PROJECT_NAME}
-Dsonar.projectVersion=1.0
-Dsonar.sourceEncoding=UTF-8
-Dsonar.projectBaseDir=.
-Dsonar.host.url=${SONAR_URL}
-Dsonar.projectKey=${SONAR_PROJECT_KEY}
-Dsonar.login=${SONAR_TOKEN}
-Dsonar.go.coverage.reportPaths=./coverage.out
-Dsonar.exclusions=**/*_test.go
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