-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable CI/CD for Project Reclamation (#49)
* Update npm scripts * Update git secrets Add mm@server1.dashnet.in * Update pm2 ecosystem with deploy settings * Update npm scripts from pm2-runtime to pm2 * Update ecosystem post-deploy command * Update post-deploy script in pm2 ecosystem Bug fix git secret clean to remove * Update github workflows Change list to be triggered on approval of PR; Create devDeploy and prodDeploy scripts for CI/CD
- Loading branch information
Showing
8 changed files
with
83 additions
and
10 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Development Server Deploy | ||
|
||
on: | ||
push: | ||
branches: [development] | ||
paths: | ||
- '.env.js.secret' | ||
- 'ecosystem.config.js' | ||
- 'package.json' | ||
- 'server/**' | ||
|
||
jobs: | ||
devDeploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Run PM2 Deploy | ||
run: npx pm2 deploy staging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Production Server Deploy | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
devDeploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Run PM2 Deploy | ||
run: npx pm2 deploy production |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.