Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sweepstake
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arjun Jhukal
sweepstake
Commits
d49f99e2
Commit
d49f99e2
authored
Feb 02, 2026
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the firekirin new deployment pipeline
parent
af2d9222
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
148 additions
and
122 deletions
+148
-122
deploy.yml
.github/workflows/deploy.yml
+138
-117
ecosystem.config.js
ecosystem.config.js
+10
-5
No files found.
.github/workflows/deploy.yml
View file @
d49f99e2
...
...
@@ -3,7 +3,7 @@ name: getFirekirin Deployment Pipeline
on
:
push
:
branches
:
-
fixes/linting
-
main
jobs
:
build-and-deploy
:
...
...
@@ -48,8 +48,8 @@ jobs:
-
name
:
Setup SSH
run
:
|
mkdir -p ~/.ssh
echo "${{ secrets.SERVER_SSH_KEY }}" > ~/.ssh/id_
ed25519
chmod 600 ~/.ssh/id_
ed25519
echo "${{ secrets.SERVER_SSH_KEY }}" > ~/.ssh/id_
rsa
chmod 600 ~/.ssh/id_
rsa
ssh-keyscan -H ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts
-
name
:
Deploy build to server
...
...
@@ -58,120 +58,141 @@ jobs:
--exclude '.git' \
--exclude '.env*' \
--exclude 'node_modules' \
--exclude 'conf' \
--exclude 'logs' \
--exclude 'ssl' \
--exclude 'tmp' \
--exclude 'private_html' \
--exclude 'public_html' \
./ \
${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }}:/
var/www/getFirekirin
/
${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }}:/
home/1522942.cloudwaysapps.com/swsjapwyjk
/
# - name: Restart application
# run: |
# ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} << 'EOF'
# cd /var/www/getFirekirin
# pm2 reload ecosystem.config.js --update-env --env production || \
# pm2 start ecosystem.config.js --env production
# EOF
# - name: Notify Slack on Success
# if: success()
# uses: slackapi/slack-github-action@v1.27.0
# with:
# payload: |
# {
# "text": "✅ getFirekirin Deployment Successful!",
# "blocks": [
# {
# "type": "header",
# "text": {
# "type": "plain_text",
# "text": "✅ getFirekirin Deployment Successful"
# }
# },
# {
# "type": "section",
# "fields": [
# {
# "type": "mrkdwn",
# "text": "*Repository:*\n${{ github.repository }}"
# },
# {
# "type": "mrkdwn",
# "text": "*Branch:*\n${{ github.ref_name }}"
# },
# {
# "type": "mrkdwn",
# "text": "*Commit:*\n<${{ github.event.head_commit.url }}|${{ github.sha }}>"
# },
# {
# "type": "mrkdwn",
# "text": "*Author:*\n${{ github.actor }}"
# }
# ]
# },
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "*Message:* ${{ github.event.head_commit.message }}"
# }
# },
# {
# "type": "context",
# "elements": [
# {
# "type": "mrkdwn",
# "text": "Deployed to production at <!date^${{ github.event.head_commit.timestamp }}^{date_num} {time_secs}|${{ github.event.head_commit.timestamp }}>"
# }
# ]
# }
# ]
# }
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
-
name
:
Restart application
run
:
|
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} << 'EOF'
# Load NVM
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# Go to app directory
cd /home/1522942.cloudwaysapps.com/swsjapwyjk
# Install dependencies (production only, no dev dependencies)
npm ci --prefer-offline --no-audit --production=false
# Reload or start PM2
pm2 reload ecosystem.config.js --update-env --env production || \
pm2 start ecosystem.config.js --env production
# Save PM2 process list
pm2 save
# Show status
pm2 list
EOF
-
name
:
Notify Slack on Success
if
:
success()
uses
:
slackapi/slack-github-action@v1.27.0
with
:
payload
:
|
{
"text": "✅ getFirekirin Deployment Successful!",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "✅ getFirekirin Deployment Successful"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Repository:*\n${{ github.repository }}"
},
{
"type": "mrkdwn",
"text": "*Branch:*\n${{ github.ref_name }}"
},
{
"type": "mrkdwn",
"text": "*Commit:*\n<${{ github.event.head_commit.url }}|${{ github.sha }}>"
},
{
"type": "mrkdwn",
"text": "*Author:*\n${{ github.actor }}"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Message:* ${{ github.event.head_commit.message }}"
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "Deployed to production at <!date^${{ github.event.head_commit.timestamp }}^{date_num} {time_secs}|${{ github.event.head_commit.timestamp }}>"
}
]
}
]
}
env
:
SLACK_WEBHOOK_URL
:
${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE
:
INCOMING_WEBHOOK
#
- name: Notify Slack on Failure
#
if: failure()
#
uses: slackapi/slack-github-action@v1.27.0
#
with:
#
payload: |
#
{
#
"text": "❌ getFirekirin Deployment Failed!",
#
"blocks": [
#
{
#
"type": "header",
#
"text": {
#
"type": "plain_text",
#
"text": "❌ getFirekirin Deployment Failed"
#
}
#
},
#
{
#
"type": "section",
#
"fields": [
#
{
#
"type": "mrkdwn",
#
"text": "*Repository:*\n${{ github.repository }}"
#
},
#
{
#
"type": "mrkdwn",
#
"text": "*Branch:*\n${{ github.ref_name }}"
#
},
#
{
#
"type": "mrkdwn",
#
"text": "*Commit:*\n<${{ github.event.head_commit.url }}|${{ github.sha }}>"
#
},
#
{
#
"type": "mrkdwn",
#
"text": "*Author:*\n${{ github.actor }}"
#
}
#
]
#
},
#
{
#
"type": "section",
#
"text": {
#
"type": "mrkdwn",
#
"text": "*Action:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow Run>"
#
}
#
}
#
]
#
}
#
env:
#
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
#
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
-
name
:
Notify Slack on Failure
if
:
failure()
uses
:
slackapi/slack-github-action@v1.27.0
with
:
payload
:
|
{
"text": "❌ getFirekirin Deployment Failed!",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "❌ getFirekirin Deployment Failed"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Repository:*\n${{ github.repository }}"
},
{
"type": "mrkdwn",
"text": "*Branch:*\n${{ github.ref_name }}"
},
{
"type": "mrkdwn",
"text": "*Commit:*\n<${{ github.event.head_commit.url }}|${{ github.sha }}>"
},
{
"type": "mrkdwn",
"text": "*Author:*\n${{ github.actor }}"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Action:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow Run>"
}
}
]
}
env
:
SLACK_WEBHOOK_URL
:
${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE
:
INCOMING_WEBHOOK
ecosystem.config.js
View file @
d49f99e2
...
...
@@ -2,9 +2,10 @@ module.exports = {
apps
:
[{
name
:
'getFirekirin'
,
script
:
'node_modules/next/dist/bin/next'
,
args
:
'start
-p 3000
'
,
cwd
:
'/
var/www/getFirekirin
'
,
args
:
'start'
,
cwd
:
'/
home/1522942.cloudwaysapps.com/swsjapwyjk
'
,
instances
:
1
,
exec_mode
:
'cluster'
,
autorestart
:
true
,
watch
:
false
,
max_memory_restart
:
'1G'
,
...
...
@@ -12,8 +13,11 @@ module.exports = {
NODE_ENV
:
'production'
,
PORT
:
3000
},
error_file
:
'/var/www/getFirekirin/logs/pm2-error.log'
,
out_file
:
'/var/www/getFirekirin/logs/pm2-out.log'
,
log_date_format
:
'YYYY-MM-DD HH:mm:ss Z'
error_file
:
'/home/1522942.cloudwaysapps.com/swsjapwyjk/logs/pm2-error.log'
,
out_file
:
'/home/1522942.cloudwaysapps.com/swsjapwyjk/logs/pm2-out.log'
,
log_date_format
:
'YYYY-MM-DD HH:mm:ss Z'
,
merge_logs
:
true
,
max_restarts
:
10
,
min_uptime
:
'10s'
}]
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment