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

View file

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