Skip to content

Commit 36a1464

Browse files
update demo site fly.toml to use image from ghcr instead of building one. Also make the deployment pipeline dependent on pushes to ghcr.
1 parent bb2ec89 commit 36a1464

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/fly-deploy.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22

33
name: Fly Deploy
44
on:
5-
push:
6-
branches:
7-
- main
5+
# Since the `fly.toml` specifies the `latest` tag, we trigger this
6+
# deployment whenever a new version is published to the container registry.
7+
# @see: ghcr-publish.yml
8+
workflow_run:
9+
workflows: ["Publish to ghcr"]
10+
types:
11+
- completed
812

913
jobs:
1014
deploy:

fly.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ app = 'sourcebot'
77
primary_region = 'sjc'
88

99
[build]
10+
image = "ghcr.io/sourcebot-dev/sourcebot:latest"
1011

1112
[http_service]
1213
internal_port = 3000

0 commit comments

Comments
 (0)