After this new fly.io change I can no longer run the github actions that I had in my project, I received the email to perform the commands:
- update flyctl to the latest version
- run fly config save to pull in the latest fly.toml format
Status: Downloaded newer image for heroku/heroku:20-cnb
Error: failed to fetch an image or build from source: executing lifecycle: http: invalid Host header
My fly.tom that started giving an error when trying to deploy:
# fly.toml file generated for po-sample-api on 2022-09-29T18:26:31-03:00
app = "po-sample-api"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[build]
builder = "heroku/buildpacks:20"
[env]
PORT = "8080"
[experimental]
allowed_public_ports = []
auto_rollback = true
[[services]]
http_checks = []
internal_port = 8080
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"
My fly.tom after performing the command I received via email:
# fly.toml app configuration file generated for po-sample-api on 2023-07-12T14:36:30-03:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "po-sample-api"
primary_region = "gru"
kill_signal = "SIGINT"
kill_timeout = "5s"
[experimental]
auto_rollback = true
[build]
builder = "heroku/buildpacks:20"
[env]
PORT = "8080"
[[services]]
protocol = "tcp"
internal_port = 8080
processes = ["app"]
[[services.ports]]
port = 80
handlers = ["http"]
force_https = true
[[services.ports]]
port = 443
handlers = ["tls", "http"]
[services.concurrency]
type = "connections"
hard_limit = 25
soft_limit = 20
[[services.tcp_checks]]
interval = "15s"
timeout = "2s"
grace_period = "1s"
restart_limit = 0
main.yml:
name: Fly Deploy
on:
workflow_dispatch:
push:
branches:
- main
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --local-only --no-cache