forked from hngprojects/hng_boilerplate_nextjs
-
Notifications
You must be signed in to change notification settings - Fork 0
141 lines (119 loc) · 3.78 KB
/
team-deployment.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
name: Team Deployment
on:
workflow_run:
workflows: ["Build and Push"]
types:
- completed
jobs:
kimiko-golang:
if: github.event.repository.fork == false
runs-on: ubuntu-latest
environment:
name: "kimiko-golang"
url: ${{ vars.URL }}
steps:
- name: Deploy to kimiko-golang environment
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd hng_boilerplate_nextjs
./scripts/team_deploy.sh kimiko-golang ${{ vars.PORT }}
kimiko-csharp:
if: github.event.repository.fork == false
runs-on: ubuntu-latest
environment:
name: "kimiko-csharp"
url: ${{ vars.URL }}
steps:
- name: Deploy to kimiko-csharp environment
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd hng_boilerplate_nextjs
./scripts/team_deploy.sh kimiko-csharp ${{ vars.PORT }}
cyborgs-java:
if: github.event.repository.fork == false
runs-on: ubuntu-latest
environment:
name: "cyborgs-java"
url: ${{ vars.URL }}
steps:
- name: Deploy to cyborgs-java environment
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd hng_boilerplate_nextjs
./scripts/team_deploy.sh cyborgs-java ${{ vars.PORT }}
cyborgs-python:
if: github.event.repository.fork == false
runs-on: ubuntu-latest
environment:
name: "cyborgs-python"
url: ${{ vars.URL }}
steps:
- name: Deploy to cyborgs-python environment
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd hng_boilerplate_nextjs
./scripts/team_deploy.sh cyborgs-python ${{ vars.PORT }}
bulldozer-php:
if: github.event.repository.fork == false
runs-on: ubuntu-latest
environment:
name: "bulldozer-php"
url: ${{ vars.URL }}
steps:
- name: Deploy to bulldozer-php environment
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd hng_boilerplate_nextjs
./scripts/team_deploy.sh bulldozer-php ${{ vars.PORT }}
starlight-nestjs:
if: github.event.repository.fork == false
runs-on: ubuntu-latest
environment:
name: "starlight-nestjs"
url: ${{ vars.URL }}
steps:
- name: Deploy to starlight-nestjs environment
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd hng_boilerplate_nextjs
./scripts/team_deploy.sh starlight-nestjs ${{ vars.PORT }}
panther-expressjs:
if: github.event.repository.fork == false
runs-on: ubuntu-latest
environment:
name: "panther-expressjs"
url: ${{ vars.URL }}
steps:
- name: Deploy to panther-expressjs environment
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd hng_boilerplate_nextjs
./scripts/team_deploy.sh panther-expressjs ${{ vars.PORT }}