summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Muscariello <muscariello@ieee.org>2022-08-12 10:51:40 +0200
committerLuca Muscariello <muscariello@ieee.org>2022-08-12 10:51:40 +0200
commit94884d2a70bd65f9e85018aa154daa3d517d3ca8 (patch)
tree05f260fa0f7989797d0ee70ce14ea095ee770c93
parenta42b58605819b74e2002d67e913b241e4ddb15e1 (diff)
feat: fix sonarcloud build
Signed-off-by: Luca Muscariello <muscariello@ieee.org> Change-Id: I569ede7040d0f1e168af87a67e31d494fd11bc77
-rw-r--r--scripts/docker-compose-sonar.yml5
-rwxr-xr-xscripts/run-sonar.sh2
2 files changed, 6 insertions, 1 deletions
diff --git a/scripts/docker-compose-sonar.yml b/scripts/docker-compose-sonar.yml
index 52fceded4..d400d7517 100644
--- a/scripts/docker-compose-sonar.yml
+++ b/scripts/docker-compose-sonar.yml
@@ -6,6 +6,11 @@ services:
dockerfile: scripts/Dockerfile.sonarcloud
container_name: sonarcloud
hostname: sonarcloud
+ environment:
+ API_TOKEN: $API_TOKEN
+ SONAR_HOST_URL: $SONAR_HOST_URL
+ PROJECT_KEY: $PROJECT_KEY
+ PROJECT_ORGANIZATION: $PROJECT_ORGANIZATION
volumes:
- ..:/workspace
command:
diff --git a/scripts/run-sonar.sh b/scripts/run-sonar.sh
index b1b280518..529a848d8 100755
--- a/scripts/run-sonar.sh
+++ b/scripts/run-sonar.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# SONAR_HOST_URL=https://sonarcloud.io
-# PROJECT_KEY=fdio_hicn
+# PROJECT_KEY=fdio-hicn
# PROJECT_ORGANIZATION=fdio
export SONAR_TOKEN=$API_TOKEN