diff --git a/.github/workflows/fly-deploy.yml b/.github/workflows/fly-deploy.yml index 4bc68dba..382c4361 100644 --- a/.github/workflows/fly-deploy.yml +++ b/.github/workflows/fly-deploy.yml @@ -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: diff --git a/fly.toml b/fly.toml index 8bcb5de8..4999b340 100644 --- a/fly.toml +++ b/fly.toml @@ -7,6 +7,7 @@ app = 'sourcebot' primary_region = 'sjc' [build] + image = "ghcr.io/sourcebot-dev/sourcebot:latest" [http_service] internal_port = 3000