-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.92 KB
/
deploy-staging.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
47
48
49
50
51
name: Deploy to staging
concurrency: staging
on:
push:
branches:
- master
jobs:
deploy:
environment: staging
runs-on:
- self-hosted
- staging
env:
ENVIRONMENT: staging
PROJECT_NAME: ${{ vars.PROJECT_NAME }}
DOMAIN: ${{ vars.DOMAIN }}
BACKEND_CORS_ORIGINS: "https://${{ vars.DOMAIN }}"
STACK_NAME: ${{ vars.STACK_NAME }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
FERNET_KEY: "${{ secrets.FERNET_KEY }}"
FIRST_SUPERUSER: ${{ vars.FIRST_SUPERUSER }}
FIRST_SUPERUSER_PASSWORD: ${{ secrets.FIRST_SUPERUSER_PASSWORD }}
FIRST_SUPERUSER_GITHUB_USERNAME: ${{ vars.FIRST_SUPERUSER_GITHUB_USERNAME }}
SMTP_HOST: ${{ secrets.SMTP_HOST }}
SMTP_USER: ${{ secrets.SMTP_USER }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
EMAILS_FROM_EMAIL: ${{ vars.EMAILS_FROM_EMAIL }}
POSTGRES_USER: postgres
POSTGRES_PORT: 5432
POSTGRES_DB: app
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
DOCKER_IMAGE_BACKEND: "backend-${{ vars.STACK_NAME }}"
DOCKER_IMAGE_FRONTEND: "frontend-${{ vars.STACK_NAME }}"
GH_CLIENT_ID: ${{ secrets.GH_CLIENT_ID }}
GH_CLIENT_SECRET: ${{ secrets.GH_CLIENT_SECRET }}
MINIO_ROOT_PASSWORD: ${{ secrets.MINIO_ROOT_PASSWORD }}
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}
STRIPE_PUBLISHABLE_KEY: ${{ secrets.STRIPE_PUBLISHABLE_KEY }}
MIXPANEL_TOKEN: ${{ secrets.MIXPANEL_TOKEN }}
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}
ZENODO_CLIENT_ID: ${{ secrets.ZENODO_CLIENT_ID }}
ZENODO_CLIENT_SECRET: ${{ secrets.ZENODO_CLIENT_SECRET }}
steps:
- name: Checkout
uses: actions/checkout@v4
- run: docker compose -f docker-compose.yml --project-name ${{ vars.STACK_NAME }} build
- run: docker compose -f docker-compose.yml --project-name ${{ vars.STACK_NAME }} up -d