Skip to content

Deploy to Production #152

Deploy to Production

Deploy to Production #152

Workflow file for this run

name: Deploy to Production
on:
workflow_dispatch:
jobs:
deploy_to_staging:
runs-on: self-hosted
environment: staging
env:
AWS_DEFAULT_REGION: eu-central-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
OAUTH_CLIENT_ID: ${{ secrets.OAUTH_CLIENT_ID }}
OAUTH_CLIENT_SECRET: ${{ secrets.OAUTH_CLIENT_SECRET }}
SMTP_HOST: ${{ secrets.SMTP_HOST }}
SMTP_USER: ${{ secrets.SMTP_USER }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
MAXION_CLIENT_ID: ${{secrets.MAXION_CLIENT_ID}}
MAXION_CLIENT_SECRET: ${{secrets.MAXION_CLIENT_SECRET}}
steps:
- uses: actions/checkout@v2
- run: |
bash .github/tvarit/deploy_to_staging.sh maxion
bash .github/tvarit/deploy_to_staging.sh cloud
deploy_to_production:
runs-on: self-hosted
environment: production
env:
AWS_DEFAULT_REGION: eu-central-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
OAUTH_CLIENT_ID: ${{ secrets.OAUTH_CLIENT_ID }}
OAUTH_CLIENT_SECRET: ${{ secrets.OAUTH_CLIENT_SECRET }}
SMTP_HOST: ${{ secrets.SMTP_HOST }}
SMTP_USER: ${{ secrets.SMTP_USER }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
MAXION_CLIENT_ID: ${{secrets.MAXION_CLIENT_ID}}
MAXION_CLIENT_SECRET: ${{secrets.MAXION_CLIENT_SECRET}}
steps:
- uses: actions/checkout@v2
- run: |
bash .github/tvarit/deploy_to_production.sh maxion
bash .github/tvarit/deploy_to_production.sh cloud
needs: [deploy_to_staging]