Kanwar Pal Singh
All notes

Note

Moving two apps from Fly.io to Azure Container Apps

One container each, deployed from GitHub with no stored password.

JobFit Audit and ReceiptToSheet each run as a single container: the React front end is built into the same image as its API, FastAPI for JobFit Audit and ASP.NET Core for ReceiptToSheet. They ran on Fly.io until its trial ended. On 21 November 2026 both moved to Azure Container Apps in the Central India region, at jobfit.kanwarpalsingh.com and receipts.kanwarpalsingh.com.

Every push to the main branch runs a GitHub Actions workflow. It builds the image and pushes it to a private package in GitHub’s container registry, then signs in to Azure with OpenID Connect: GitHub issues a short-lived token, and Azure accepts it through a federated credential on a managed identity that is only allowed to update the container apps. No Azure password or secret is stored in GitHub. The workflow then points the app at the new image, which creates a new revision, and waits for the app’s health check to answer before the deploy counts as done.

One detail took the longest to find: GitHub now puts the account and repository IDs, not just their names, in the token it issues, and Azure’s federated credential has to match that subject exactly.

Azure pulls the private images with a read-only registry token kept as a Container Apps secret, so there is no separate registry to pay for. Each app has its own subdomain: a CNAME record pointing at the app and a TXT record proving ownership, added at the domain’s DNS host. Azure then issues a free certificate and renews it automatically.

On the Consumption plan an app can scale to zero. It stops about five minutes after the last request and costs nothing while idle, and Azure’s monthly free grant covers roughly 100 to 200 active hours of each app. The price is a cold start: in tests the first request after a pause waited 20 to 65 seconds, mostly for the image to be pulled and traffic to reach the new replica. Warm requests take about 0.15 seconds. An app can keep one replica running instead, for about ten dollars a month, and this site sends each demo a small wake-up request when someone opens it, so a demo is usually ready by the time a visitor reaches its link.

ReceiptToSheet keeps each batch of receipts in memory, so it is capped at one replica: a second one would not see the first one’s batches. That is fine for a demo; for production its README lists what it would need instead: private object storage with expiry, per-user authorization, rate limits and a durable queue.

Read JobFit Audit’s case study