mirror of https://github.com/bitwarden/web.git
Browse Source
* updating the build pipeline for the QA env * changing the docker build context * removed commented code * moving commands to single line * fixing typo * removing unneeded build scriptpull/940/head
2 changed files with 18 additions and 44 deletions
@ -1,33 +0,0 @@ |
|||||||
#!/usr/bin/env bash |
|
||||||
set -e |
|
||||||
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
|
||||||
|
|
||||||
echo "" |
|
||||||
|
|
||||||
if [ $# -gt 1 -a "$1" == "push" ] |
|
||||||
then |
|
||||||
TAG=$2 |
|
||||||
echo "# Pushing Web ($TAG)" |
|
||||||
echo "" |
|
||||||
docker push bitwarden/web:$TAG |
|
||||||
elif [ $# -gt 1 -a "$1" == "tag" ] |
|
||||||
then |
|
||||||
TAG=$2 |
|
||||||
echo "Tagging Web as '$TAG'" |
|
||||||
docker tag bitwarden/web bitwarden/web:$TAG |
|
||||||
else |
|
||||||
echo "# Building Web" |
|
||||||
|
|
||||||
echo "" |
|
||||||
echo "Building app" |
|
||||||
echo "npm version $(npm --version)" |
|
||||||
npm install |
|
||||||
npm run sub:update |
|
||||||
npm run dist:selfhost |
|
||||||
|
|
||||||
echo "" |
|
||||||
echo "Building docker image" |
|
||||||
docker --version |
|
||||||
docker build -t bitwarden/web $DIR/. |
|
||||||
fi |
|
||||||
Loading…
Reference in new issue