mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-13 04:45:19 +00:00
add deployment action for staging image
This commit is contained in:
parent
92530a7ee0
commit
2b6125be0c
2 changed files with 28 additions and 1 deletions
27
.github/workflows/fly-deploy-staging.yml
vendored
Normal file
27
.github/workflows/fly-deploy-staging.yml
vendored
Normal 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
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue