enable region

This commit is contained in:
zizifn
2022-04-08 18:19:31 +08:00
committed by zizifn
parent 8e55d81d2e
commit 688f10a56f
2 changed files with 8 additions and 6 deletions

View File

@@ -4,13 +4,11 @@ on:
workflow_dispatch:
inputs:
actions:
description: "action: deploy/stop/start"
description: "action: deploy/stop/start/destroy"
default: "deploy"
auto-start-stop:
description: 'if this is true, then action will run auto stop on 2:00AM and auto start on 5:00AM beijing time'
default: "true"
required: true
type: boolean
heroku-region:
description: "us or eu. 如果你的app已经创建切换到不同的region需要先删除app"
default: "us"
env:
description: "environment: Input the name of Environment. If left blank, the main secrets setting will be used by default."
default: ""
@@ -29,6 +27,7 @@ jobs:
heroku_app_name: ${{secrets.APP_NAME}} #Must be unique in Heroku
heroku_email: ${{secrets.EMAIL}}
usedocker: true
region: ${{github.event.inputs.heroku-region || 'us'}}
# docker_build_args: |
# HD_UUID
env:
@@ -53,4 +52,5 @@ jobs:
echo action is ${{ github.event.inputs.actions }}
if [[ ${{ github.event.inputs.actions }} == 'stop' ]]; then heroku ps:scale web=0 -a ${{secrets.APP_NAME}} && echo "stop"; fi
if [[ ${{ github.event.inputs.actions }} == 'start' ]]; then heroku ps:scale web=1 -a ${{secrets.APP_NAME}} && echo "start"; fi
if [[ ${{ github.event.inputs.actions }} == 'destroy' ]]; then heroku apps:destroy -a ${{secrets.APP_NAME}} && echo "destroy app"; fi
heroku ps -a ${{secrets.APP_NAME}}

View File

@@ -44,6 +44,8 @@
| HEROKU_V2RAY_UUID | V2rayUUID |
| HEROKU_TUNNEL_TOKEN | **可选** cloudflare tunnel 的 token |
> 这样Token一定必须是大写。。请在 heroku 网站创建app来确保项目的名字的唯一性。
HEROKU_TUNNEL_TOKEN 是可选项,可以忽略. 详细说明,请查看章节 《建立-cloudflare-tunnel-(可选)》
> 请务必生成新的 UUID。使用已有的 UUID 会使自己 V2ray 暴露在危险之下。