Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
adnankattekaden committed Oct 16, 2023
2 parents 6f228a1 + 24130ae commit 2126c99
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Dev CI

on:
push:
branches: [ "dev-server" ]
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3


- name: Configure SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DEV_SSH_PRIVATE_KEY }}

- name: Deploy
env:
REMOTE_IP: ${{ secrets.DEV_REMOTE_IP }}
PROJECT_PATH: ${{ secrets.PROJECT_PATH }}
run: |
ssh -o StrictHostKeyChecking=no ubuntu@$REMOTE_IP "cd $PROJECT_PATH && git pull && docker-compose down && docker-compose up --build -d"
28 changes: 28 additions & 0 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Prod CI

on:
push:
branches: [ "production" ]
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3


- name: Configure SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.PROD_SSH_PRIVATE_KEY }}

- name: Deploy
env:
REMOTE_IP: ${{ secrets.PROD_REMOTE_IP }}
PROJECT_PATH: ${{ secrets.PROJECT_PATH }}
run: |
ssh -o StrictHostKeyChecking=no ubuntu@$REMOTE_IP "cd $PROJECT_PATH && git pull && docker-compose up --build -d"

0 comments on commit 2126c99

Please sign in to comment.