chromium-dashboard/scripts/deploy_site.sh

43 строки
912 B
Bash
Исходник Обычный вид История

2013-04-12 21:19:21 +04:00
#!/bin/bash
#
# Deploys the app to App Engine.
#
2013-04-12 21:19:21 +04:00
# Note: This script should be used in place of using appcfg.py update directly
# to update the application on App Engine.
#
# Copyright 2015 Eric Bidelman <ericbidelman@chromium.org>
2013-04-12 21:19:21 +04:00
deployVersion=$1
appName=${2:-cr-status}
deployAppYaml="app.staging.yaml"
deployNotifierYaml="notifier.staging.yaml"
if [[ "${appName}" == "cr-status" ]]; then
deployAppYaml="app.yaml"
deployNotifierYaml="notifier.yaml"
fi
usage="Usage: deploy.sh `date +%Y-%m-%d`"
if [ -z "$deployVersion" ]
then
echo "App version not specified."
echo $usage
exit 0
fi
2013-04-12 21:19:21 +04:00
# The directory in which this script resides.
readonly BASEDIR=$(dirname $BASH_SOURCE)
2016-07-22 00:06:04 +03:00
gulp
gcloud beta app deploy \
--project $appName \
2017-10-17 19:57:53 +03:00
--version $deployVersion \
--no-promote \
$BASEDIR/../$deployNotifierYaml \
$BASEDIR/../$deployAppYaml \
$BASEDIR/../dispatch.yaml \
$BASEDIR/../cron.yaml