File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,23 @@ name: CD
2
2
3
3
on :
4
4
release :
5
- branches : [ " main" ]
6
- type : released
5
+ branches : [main]
6
+ types : [published]
7
7
8
8
jobs :
9
9
deploy :
10
- runs-on : self-hosted
10
+ runs-on : [self-hosted, linux, x64, prod]
11
+ environment : Production
11
12
steps :
12
- - uses : actions/checkout@v4
13
- - name : deploy
14
- run : bash ./deploy/prod/deploy.sh
13
+ - uses : actions/checkout@v4
14
+
15
+ - name : add secrets
16
+ run : echo ${{ secrets.CONFIG }} > deploy/prod/ttt/secrets.yaml
17
+
18
+ - name : deploy
19
+ run : bash ./deploy/prod/deploy.sh
20
+ env :
21
+ REDIS_PASSWORD : ${{ secrets.REDIS_PASSWORD }}
22
+
23
+ POSTGRES_TTT_PASSWORD : ${{ secrets.POSTGRES_TTT_PASSWORD }}
24
+ POSTGRES_REPLICA_PASSWORD : ${{ secrets.POSTGRES_REPLICA_PASSWORD }}
You can’t perform that action at this time.
0 commit comments