update demo site fly.toml to use image from ghcr instead of building one. Also make the deployment pipeline dependent on pushes to ghcr.

This commit is contained in:
bkellam 2024-10-17 13:41:58 -04:00
parent bb2ec892aa
commit 36a146486d
2 changed files with 8 additions and 3 deletions

View file

@ -2,9 +2,13 @@
name: Fly Deploy
on:
push:
branches:
- main
# Since the `fly.toml` specifies the `latest` tag, we trigger this
# deployment whenever a new version is published to the container registry.
# @see: ghcr-publish.yml
workflow_run:
workflows: ["Publish to ghcr"]
types:
- completed
jobs:
deploy:

View file

@ -7,6 +7,7 @@ app = 'sourcebot'
primary_region = 'sjc'
[build]
image = "ghcr.io/sourcebot-dev/sourcebot:latest"
[http_service]
internal_port = 3000