-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 1.62 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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]