From 36a146486d33d2a06a0b2980ca09416bd24e6774 Mon Sep 17 00:00:00 2001 From: bkellam Date: Thu, 17 Oct 2024 13:41:58 -0400 Subject: [PATCH] update demo site fly.toml to use image from ghcr instead of building one. Also make the deployment pipeline dependent on pushes to ghcr. --- .github/workflows/fly-deploy.yml | 10 +++++++--- fly.toml | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) 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