Adding QA info.json file (#1182)

* adding a file to the QA container to enable easy tracking the version of the currently deployed web client

* adding another visual representation of the QA version
This commit is contained in:
Joseph Flinn 2021-09-08 10:08:31 -07:00 committed by GitHub
parent ded636ba0c
commit 7e95476dce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -196,8 +196,14 @@ jobs:
echo -e "# Building Web\n"
echo "Building app"
echo "npm version $(npm --version)"
VERSION=$( jq -r ".version" package.json)
jq --arg version "$VERSION - ${GITHUB_SHA:0:7}" '.version = $version' package.json > package.json.tmp
mv package.json.tmp package.json
npm run build:qa
echo "{\"commit_hash\": \"$GITHUB_SHA\", \"ref\": \"$GITHUB_REF\"}" | jq . > build/info.json
echo -e "\nBuilding Docker image"
docker --version
docker build -t bitwardenqa.azurecr.io/web .