Skip to content

Commit

Permalink
prod workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalnjs committed Oct 19, 2023
1 parent 09f7ab6 commit 6daecf6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml → .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
branches:
- dev
jobs:

build:
name: Build
runs-on: ubuntu-latest
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy Node.js App (Production)
on:
pull_request:
types:
- closed
branches:
- prod
jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using SSH key
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.PORT }}
script: cd /home/dangoweb/domains/faisaln.com/southern-bell && git pull && cloudlinux-selector restart --json --interpreter nodejs --app-root "/home/dangoweb/domains/faisaln.com/southern-bell"
6 changes: 4 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# The Southern Bell Website

All - [![Total Time](https://wakatime.com/badge/user/074621a8-639e-4f3e-b6d9-f23b6bb481a9/project/2b675577-fc77-4320-ad6f-c728de7ad7bc.svg)](https://wakatime.com/@OGFaisalN/projects/uapnosftrk)
Production - ![Deploy Node.js App](https://github.com/OGFaisalN/Southern-Bell/actions/workflows/main.yml/badge.svg?branch=prod)
Development - ![Deploy Node.js App](https://github.com/OGFaisalN/Southern-Bell/actions/workflows/main.yml/badge.svg?branch=dev)

Production - ![Deploy Node.js App](https://github.com/OGFaisalN/Southern-Bell/actions/workflows/prod.yml/badge.svg?branch=prod)

Development - ![Deploy Node.js App](https://github.com/OGFaisalN/Southern-Bell/actions/workflows/dev.yml/badge.svg?branch=dev)

CMS - /admin

0 comments on commit 6daecf6

Please sign in to comment.