Skip to content

Multiple clients for multiple instances #21

Multiple clients for multiple instances

Multiple clients for multiple instances #21

Workflow file for this run

name: Deploy to Railway
on:
push:
branches:
- master
- dev
paths-ignore:
- '.github/**'
- '.tests/**'
- '.gitignore'
- 'app_config.wsgi'
- 'base-requirements.txt'
- 'deploy.py'
- 'LICENSE'
- 'README.md'
- 'requirements.txt'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install Railway CLI
run: curl -fsSL https://railway.app/install.sh | sh
- name: Deploy to Railway
run: |
if [ "${GITHUB_REF}" == "refs/heads/master" ]; then
RAILWAY_TOKEN="${{ secrets.RAILWAY_TOKEN_PROD }}" railway up --environment production --service mastodon-gender-distribution
elif [ "${GITHUB_REF}" == "refs/heads/dev" ]; then
RAILWAY_TOKEN="${{ secrets.RAILWAY_TOKEN_DEV }}" railway up --environment dev --service mastodon-gender-distribution
fi