add deployment action for staging image

This commit is contained in:
msukkari 2025-01-30 13:31:59 -08:00
parent 92530a7ee0
commit 2b6125be0c
2 changed files with 28 additions and 1 deletions

View file

@ -0,0 +1,27 @@
name: Deploy to Fly (staging)
on:
workflow_run:
workflows: ["Publish to ghcr (staging)"]
types:
- completed
jobs:
deploy:
name: Deploy staging app
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Use flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
- name: Deploy to fly.io
run: flyctl deploy --local-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
working-directory: ./staging

View file

@ -150,7 +150,7 @@ export const createConnection = async (config: string): Promise<{ id: number } |
let parsedConfig;
try {
parsedConfig = JSON.parse(config);
} catch (e) {
} catch {
return {
statusCode: StatusCodes.BAD_REQUEST,
errorCode: ErrorCode.INVALID_REQUEST_BODY,