Skip to content
Merged
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
7 changes: 4 additions & 3 deletions .github/workflows/deploy_to_railway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
push:
branches:
- main
- staging
- 'release/pr-v*'

workflow_dispatch:
Expand Down Expand Up @@ -35,7 +36,7 @@ jobs:
deploy-to-railway:
name: Deploy to Railway
runs-on: ubuntu-latest
environment: ${{ inputs.deploy-env || (github.ref_name == 'main' && 'Development') || (startsWith(github.ref_name, 'release/pr-v') && 'Production') || (startsWith(github.ref_name, 'staging/') && 'Staging') || 'None' }}
environment: ${{ inputs.deploy-env || (github.ref_name == 'main' && 'Development') || (startsWith(github.ref_name, 'release/pr-v') && 'Production') || (github.ref_name == 'staging' && 'Staging') || 'None' }}
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_GITHUB_ACTIONS }}
steps:
Expand All @@ -54,7 +55,7 @@ jobs:
restore-db:
name: Restore DB
needs: deploy-to-railway
environment: ${{ inputs.deploy-env || (github.ref_name == 'main' && 'Development') || (startsWith(github.ref_name, 'release/pr-v') && 'Production') || (startsWith(github.ref_name, 'staging/') && 'Staging') || 'None' }}
environment: ${{ inputs.deploy-env || (github.ref_name == 'main' && 'Development') || (startsWith(github.ref_name, 'release/pr-v') && 'Production') || (github.ref_name == 'staging' && 'Staging') || 'None' }}
runs-on: ubuntu-latest
if: ${{ inputs.restore-db == true }}
env:
Expand All @@ -74,7 +75,7 @@ jobs:
needs: restore-db
if: ${{ inputs.create-admin == true }}
runs-on: ubuntu-latest
environment: ${{ inputs.deploy-env || (github.ref_name == 'main' && 'Development') || (startsWith(github.ref_name, 'release/pr-v') && 'Production') || (startsWith(github.ref_name, 'staging/') && 'Staging') || 'None' }}
environment: ${{ inputs.deploy-env || (github.ref_name == 'main' && 'Development') || (startsWith(github.ref_name, 'release/pr-v') && 'Production') || (github.ref_name == 'staging' && 'Staging') || 'None' }}
env:
APOS_MONGODB_URI: ${{ secrets.MONGO_URI }}
ADMIN_PASSWORD: ${{ secrets.ADMIN_PASSWORD }}
Expand Down
Loading