mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 11:13:46 +00:00
ci builds
This commit is contained in:
36
build-ci.sh
Normal file
36
build-ci.sh
Normal file
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
echo "Repo tag name: ${APPVEYOR_REPO_TAG_NAME}"
|
||||
echo "Rebuild: ${APPVEYOR_RE_BUILD}"
|
||||
|
||||
PROD_DEPLOY=false
|
||||
TAG_NAME=""
|
||||
if [ "${APPVEYOR_REPO_TAG_NAME}" != "" -a "${APPVEYOR_RE_BUILD}" == "true" ]
|
||||
then
|
||||
PROD_DEPLOY=true
|
||||
TAG_NAME=${APPVEYOR_REPO_TAG_NAME#"v"}
|
||||
fi
|
||||
|
||||
npm install
|
||||
npm run build:prod
|
||||
|
||||
chmod +x ./build.sh
|
||||
./build.sh
|
||||
./build.sh tag dev
|
||||
|
||||
if [ "${PROD_DEPLOY}" == "true" ]
|
||||
then
|
||||
./build.sh tag beta
|
||||
./build.sh tag $TAG_NAME
|
||||
fi
|
||||
|
||||
docker images
|
||||
./build.sh push dev
|
||||
|
||||
if [ "${PROD_DEPLOY}" == "true" ]
|
||||
then
|
||||
./build.sh push beta
|
||||
./build.sh push latest
|
||||
./build.sh push $TAG_NAME
|
||||
fi
|
||||
Reference in New Issue
Block a user