File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 22
33set -e
44
5+ orgs=(` echo $ORG_LIST ` )
6+ team=$NOW_TEAM
7+ token=$NOW_TOKEN
8+
59yarn global add now@11.0.6
6- APP_URL=$( now --npm -t $NOW_TOKEN --public -e PRIVATE_KEY=@private-key -e APP_ID=@app-id -e BUILDKITE_TOKEN=@buildkite-token -e WEBHOOK_SECRET=@webhook-secret -e NODE_ENV=" production" )
7- now scale $APP_URL sfo 1 --token=$NOW_TOKEN
8- now alias set $APP_URL fusion-probot -t $NOW_TOKEN
9- now rm probot-app-workflow --safe -t $NOW_TOKEN -y
10+ # we use private github apps for this bot, which can't be installed on
11+ # multiple orgs, so we need a separate deployment for each org
12+ for org in " ${orgs[@]} " ; do
13+ app_name=" $org -bot"
14+ app_url=$( now --npm --name=$app_name -T $team -t $token --public -e PRIVATE_KEY=" @probot-$org -private-key" -e APP_ID=" @probot-$org -app-id" -e WEBHOOK_SECRET=" @probot-$org -webhook-secret" -e BUILDKITE_TOKEN=@buildkite-token -e NODE_ENV=" production" )
15+ now scale $app_url sfo 1 -T $team --token=$token
16+ now alias set $app_url $app_name -T $team -t $token
17+ now rm $app_name --safe -T $team -t $token -y || true
18+ done
You can’t perform that action at this time.
0 commit comments