|
|
@ -18,13 +18,14 @@ steps:
|
|
|
|
|
|
|
|
|
|
|
|
# Sonar static code analisis deployment ✔️
|
|
|
|
# Sonar static code analisis deployment ✔️
|
|
|
|
- name: code-analysis
|
|
|
|
- name: code-analysis
|
|
|
|
image: php:8.0-cli
|
|
|
|
image: php:8.1-cli
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
SONAR_TOKEN:
|
|
|
|
SONAR_TOKEN:
|
|
|
|
from_secret: SONAR_TOKEN
|
|
|
|
from_secret: SONAR_TOKEN
|
|
|
|
settings:
|
|
|
|
settings:
|
|
|
|
sources: ./Sources/
|
|
|
|
sources: ./Sources/
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
|
|
|
|
- apt-get update && apt-get install -y curl unzip
|
|
|
|
- export SONAR_SCANNER_VERSION=4.7.0.2747
|
|
|
|
- export SONAR_SCANNER_VERSION=4.7.0.2747
|
|
|
|
- export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
|
|
|
|
- export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
|
|
|
|
- curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip
|
|
|
|
- curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip
|
|
|
|