chore: migrate demo to fly.io

This commit is contained in:
andig 2023-01-14 13:28:45 +01:00
parent 6e60acfb09
commit 56e964ac20
2 changed files with 50 additions and 0 deletions

View file

@ -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:

40
packaging/fly.toml Normal file
View file

@ -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"