Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,11 @@ jobs:
OPENCODE_VERSION=${{ steps.version.outputs.tag }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Set up flyctl
uses: superfly/flyctl-actions/setup-flyctl@63da3ecc5e2793b98a3f2519b3d75d4f4c11cec2

- name: Deploy to Fly.io
run: flyctl deploy --image registry.fly.io/pistachiorama-opencode:${{ steps.version.outputs.tag }} --app pistachiorama-opencode --wait-timeout 120
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: smoke-test

on:
workflow_run:
workflows: ["Build and Push Docker Image"]
types: [completed]

jobs:
smoke:
name: Fly.io Smoke Test
runs-on: ubicloud-standard-2
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_sha }}

- name: Run integration smoke test
run: bash scripts/ci/test-opencode-integration.sh
env:
OPENCODE_URL: https://pistachiorama-opencode.fly.dev
timeout-minutes: 5
Comment thread
andreiships marked this conversation as resolved.