Commit 2f98f99f authored by Alexis POYEN's avatar Alexis POYEN
Browse files

Fix : yaml indentation

parent d4a0b725
Pipeline #7084 passed with stage
in 4 minutes and 46 seconds
...@@ -17,40 +17,40 @@ variables: ...@@ -17,40 +17,40 @@ variables:
GIT_STRATEGY: clone GIT_STRATEGY: clone
GIT_DEPTH: 0 GIT_DEPTH: 0
stages: stages:
- build-and-test-with-sonar-concurrently - build-and-test-with-sonar-concurrently
build-master: build-master:
stage: build-and-test-with-sonar-concurrently stage: build-and-test-with-sonar-concurrently
script: script:
- 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_BUILDKIT=1 docker build --pull -t "$CI_REGISTRY_IMAGE" . - DOCKER_BUILDKIT=1 docker build --pull -t "$CI_REGISTRY_IMAGE" .
- docker push "$CI_REGISTRY_IMAGE" - docker push "$CI_REGISTRY_IMAGE"
only: only:
- master - master
build: build:
stage: build-and-test-with-sonar-concurrently stage: build-and-test-with-sonar-concurrently
script: script:
- 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_BUILDKIT=1 docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" . - DOCKER_BUILDKIT=1 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"
except: except:
- master - master
sonarqube: sonarqube:
stage: build-and-test-with-sonar-concurrently stage: build-and-test-with-sonar-concurrently
image: registry.forge.grandlyon.com/apoyen/sonnar-scanner-gl:master image: registry.forge.grandlyon.com/apoyen/sonnar-scanner-gl:master
script: script:
- go test ./... -coverprofile=coverage.out - go test ./... -coverprofile=coverage.out
- > - >
sonar-scanner sonar-scanner
-Dsonar.projectName=${CI_PROJECT_NAME} -Dsonar.projectName=${CI_PROJECT_NAME}
-Dsonar.projectVersion=1.0 -Dsonar.projectVersion=1.0
-Dsonar.sourceEncoding=UTF-8 -Dsonar.sourceEncoding=UTF-8
-Dsonar.projectBaseDir=. -Dsonar.projectBaseDir=.
-Dsonar.host.url=${SONAR_URL} -Dsonar.host.url=${SONAR_URL}
-Dsonar.projectKey=${SONAR_PROJECT_KEY} -Dsonar.projectKey=${SONAR_PROJECT_KEY}
-Dsonar.login=${SONAR_TOKEN} -Dsonar.login=${SONAR_TOKEN}
-Dsonar.go.coverage.reportPaths=./coverage.out -Dsonar.go.coverage.reportPaths=./coverage.out
-Dsonar.exclusions=**/*_test.go -Dsonar.exclusions=**/*_test.go
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment