diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc00b2a2e..ad4130963 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -99,6 +99,16 @@ jobs: CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} run: make apt-release + demo: + name: Demo + needs: + - docker + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: superfly/flyctl-actions/setup-flyctl@master + - run: flyctl deploy --remote-only --app packaging/fly.toml + hassio: name: Hassio Addon needs: diff --git a/packaging/fly.toml b/packaging/fly.toml new file mode 100644 index 000000000..d2b0f2c25 --- /dev/null +++ b/packaging/fly.toml @@ -0,0 +1,40 @@ +# fly.toml file generated for evcc-demo on 2023-01-14T12:59:06+01:00 + +app = "evcc-demo" +kill_signal = "SIGINT" +kill_timeout = 5 +processes = [] + +[env] + +[build] + image = "evcc/evcc:latest" + +[experimental] + auto_rollback = true + +[[services]] + http_checks = [] + internal_port = 7070 + processes = ["app"] + protocol = "tcp" + script_checks = [] + [services.concurrency] + hard_limit = 25 + soft_limit = 20 + type = "connections" + + [[services.ports]] + force_https = true + handlers = ["http"] + port = 80 + + [[services.ports]] + handlers = ["tls", "http"] + port = 443 + + [[services.tcp_checks]] + grace_period = "1s" + interval = "15s" + restart_limit = 0 + timeout = "2s"