mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-26 12:25:20 +01:00
versioning and tagging
This commit is contained in:
parent
7b8b4dc164
commit
f0fbf664d4
@ -1,4 +1,4 @@
|
|||||||
FROM bitwarden/server
|
FROM bitwarden/server:beta
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./dist .
|
COPY ./dist .
|
||||||
|
42
build.sh
42
build.sh
@ -4,16 +4,36 @@ set -e
|
|||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "# Building Web"
|
|
||||||
|
|
||||||
echo ""
|
if [ $# -gt 0 -a "$1" == "push" ]
|
||||||
echo "Building app"
|
then
|
||||||
echo "npm version $(npm --version)"
|
echo "# Pushing Web"
|
||||||
echo "gulp version $(gulp --version)"
|
echo ""
|
||||||
npm install
|
|
||||||
gulp dist:selfHosted
|
if [ $# -gt 1 ]
|
||||||
|
then
|
||||||
|
TAG=$2
|
||||||
|
docker push bitwarden/web:$TAG
|
||||||
|
else
|
||||||
|
docker push bitwarden/web
|
||||||
|
fi
|
||||||
|
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 ""
|
||||||
echo "Building docker image"
|
echo "Building app"
|
||||||
docker --version
|
echo "npm version $(npm --version)"
|
||||||
docker build -t bitwarden/web $DIR/.
|
echo "gulp version $(gulp --version)"
|
||||||
|
npm install
|
||||||
|
gulp dist:selfHosted
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Building docker image"
|
||||||
|
docker --version
|
||||||
|
docker build -t bitwarden/web $DIR/.
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user