RED-3800 - sonar api key update

This commit is contained in:
Timo Bejan 2022-12-08 15:36:59 +02:00
parent 8cb8c8027c
commit bee491eafe
2 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,7 @@ fi
echo "Building version $version"
docker build -t "$imageName":latest -f "$dockerfileLocation" .
docker build --buildArgs bamboo_sonarqube_api_token_secret=${bamboo_sonarqube_api_token_secret} -t "$imageName":latest -f "$dockerfileLocation" .
if [[ -n ${version+z} ]]
then

View File

@ -1,4 +1,5 @@
FROM node:14.18-buster as prep
RUN apt-get update && apt-get install -y jq
COPY package.json /tmp
@ -15,8 +16,8 @@ COPY yarn.lock ./
## Storing node modules on a separate layer will prevent unnecessary npm installs at each build
RUN yarn install && mkdir /ng-app && mv ./node_modules ./ng-app
ARG bamboo_sonarqube_api_token_secret
ENV bamboo_sonarqube_api_token_secret=$bamboo_sonarqube_api_token_secret
WORKDIR /ng-app