New code is not reflected in deploys

I have been trying to figure out why Fly.io deploys for my app have been always rendering very old code from my Github repo from around a month ago and I’m lost on the origin of the issue as well as the fix. I have to assume there’s something obvious I’m missing, but I can’t seem to think of it.

For additional context, I’ve attempted to fix the issue by:

  • deploying with no cache using flyctl deploy --no-cache
  • destroying all machines using flyctl machine destroy and redeploying
  • destroying my app via flyctl using flyctl apps destroy and rebuilding with flyctl launch

fly.toml file

# fly.toml app configuration file generated for kob-report on 2024-10-16T01:03:04-04:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'kob-report'
primary_region = 'ewr'

[build]

[http_service]
  internal_port = 8080
  force_https = true
  auto_stop_machines = 'stop'
  auto_start_machines = true
  min_machines_running = 0
  processes = ['app']

[[vm]]
  size = 'shared-cpu-1x'

Are you using your own GitHub actions or using fly repo deployment? Maybe it’s using a cached image or build on GH actions.

What’s in your logs?

I’ve been calling flyctl deploy manually in my repository on my recent main branch. I’m currently running into GHA issues with the built-in fly-deploy workflow, but that’s another problem I will try solving later unless that is relevant to the current issue.

After rerunning flyctl deploy on my terminal, I’ve currently got this showing up:

$ fly logs -a kob-report

Waiting for logs...

2024-11-12T15:52:18.683 runner[e784126f437308] ewr [info] Pulling container image registry.fly.io/kob-report:deployment-01JCGH6CGZZAX5DXXAXPFPZ7G1

2024-11-12T15:52:18.857 runner[e784126f437308] ewr [info] Successfully prepared image registry.fly.io/kob-report:deployment-01JCGH6CGZZAX5DXXAXPFPZ7G1 (174.240298ms)

2024-11-12T15:52:19.379 runner[e784126f437308] ewr [info] Configuring firecracker

2024-11-12T15:52:20.803 runner[e82ddd3a295d38] ewr [info] Pulling container image registry.fly.io/kob-report:deployment-01JCGH6CGZZAX5DXXAXPFPZ7G1

2024-11-12T15:52:21.029 runner[e82ddd3a295d38] ewr [info] Successfully prepared image registry.fly.io/kob-report:deployment-01JCGH6CGZZAX5DXXAXPFPZ7G1 (225.480515ms)

2024-11-12T15:52:21.781 runner[e82ddd3a295d38] ewr [info] Configuring firecracker