Commit 24728bd 1 parent 048b200 commit 24728bd Copy full SHA for 24728bd
File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,15 @@ name: Deploy
2
2
3
3
on :
4
4
push :
5
- branches : ["devops(dockerfile)/dev"]
5
+ branches :
6
+ - devops(dockerfile)/dev
7
+ - main
8
+ pull_request :
9
+ branches :
10
+ - main
11
+ types :
12
+ - closed
13
+
6
14
7
15
jobs :
8
16
deploy :
@@ -30,12 +38,11 @@ jobs:
30
38
echo 'ALLOWED_GROUP_SLUGS="${{ secrets.ALLOWED_GROUP_SLUGS }}"' >> .env
31
39
echo 'NEXTAUTH_SECRET="${{ secrets.NEXTAUTH_SECRET }}"' >> .env
32
40
33
- - name : Copy .env to VPS
41
+ - name : Copy .env to OpenStack server
34
42
run : |
35
43
scp -v -i ~/.ssh/key .env ${{ secrets.USER }}@${{ secrets.HOST }}:${{ secrets.PATH }}
36
44
37
-
38
- - name : Deploy to VPS
45
+ - name : Deploy to OpenStack server
39
46
run : |
40
47
ssh -v -i ~/.ssh/key ${{ secrets.USER }}@${{ secrets.HOST }} << 'ENDSSH'
41
48
cd ${{ secrets.PATH }}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export const env = createEnv({
15
15
process . env . NODE_ENV === "production"
16
16
? z . string ( )
17
17
: z . string ( ) . optional ( ) ,
18
- NEXTAUTH_URL : z . string ( ) . url ( ) ,
18
+ NEXTAUTH_URL : z . string ( ) ,
19
19
//
20
20
// We are no longer deploying to Vercel. Drift is Vercel v2.0 ;)
21
21
//
You can’t perform that action at this time.
0 commit comments