-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (42 loc) · 1.82 KB
/
deploy-runners.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
52
53
54
55
name: Production deploy
on:
push:
branches: [prod]
workflow_dispatch:
jobs:
deploy:
runs-on: self-hosted
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: Make envfile
uses: SpicyPizza/[email protected]
with:
envkey_JWT_SECRET: ${{ secrets.JWT_SECRET }}
envkey_GOOGLE_OAUTH_CLIENT_ID: ${{ secrets.GOOGLE_OAUTH_CLIENT_ID }}
envkey_GOOGLE_OAUTH_CLIENT_SECRET: ${{ secrets.GOOGLE_OAUTH_CLIENT_SECRET }}
envkey_AUTH_TOKEN_EXP: ${{ secrets.AUTH_TOKEN_EXP }}
envkey_RESET_PASSWORD_TOKEN_EXP: ${{ secrets.RESET_PASSWORD_TOKEN_EXP }}
envkey_VERIFY_TOKEN_EXP: ${{ secrets.VERIFY_TOKEN_EXP }}
envkey_POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
envkey_POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
envkey_POSTGRES_HOST: ${{ secrets.POSTGRES_HOST }}
envkey_POSTGRES_PORT: ${{ secrets.POSTGRES_PORT }}
envkey_POSTGRES_DB: ${{ secrets.POSTGRES_DB }}
envkey_REDIS_HOST: ${{ secrets.REDIS_HOST }}
envkey_REDIS_PORT: ${{ secrets.REDIS_PORT }}
envkey_REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD }}
envkey_SITE_DOMAIN: ${{ secrets.SITE_DOMAIN }}
envkey_SECURE_COOKIES: ${{ secrets.SECURE_COOKIES }}
envkey_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
envkey_CORS_HEADERS: ${{ secrets.CORS_HEADERS }}
envkey_CORS_ORIGINS: ${{ secrets.CORS_ORIGINS }}
envkey_ENVIRONMENT: ${{ secrets.ENVIRONMENT }}
file_name: .prod.env
directory: "./"
fail_on_empty: false
sort_keys: false
- name: pull images
run: docker-compose -f docker-compose.prod.yml pull
- name: restart containers
run: docker-compose -f docker-compose.prod.yml up -d