1
0
mirror of https://github.com/bitwarden/web synced 2025-12-10 13:23:15 +00:00

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

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 .