Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
name: Deploy Node.js CI - DO-001
# name: Deploy Node.js CI - DO-001

on:
push:
branches: [develop]
# on:
# push:
# branches: [develop]

jobs:
build:
runs-on: [ubuntu-22.04]
# jobs:
# build:
# runs-on: [ubuntu-22.04]

steps:
- name: Deploy development
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.MAIN_IP }}
username: ${{ secrets.GHA_USER }}
key: ${{ secrets.GHA_SSH }}
passphrase: ${{ secrets.GHA_PW }}
script: |
eval `ssh-agent -s`
cd ./_server/${{ vars.REPO_NAME }}/dev/
rm -rf ./${{ vars.REPO_NAME }}
ssh-add ~/.ssh/${{ secrets.REPO_SSH_NAME }}
git clone [email protected]:squeeble-ink/${{ vars.REPO_NAME }}.git
cd ./${{ vars.REPO_NAME }}
git checkout develop
rm ./nginx/prd.conf
rm ./nginx/prd-location.conf
docker compose up dev -d --build
# steps:
# - name: Deploy development
# uses: appleboy/ssh-action@master
# with:
# host: ${{ secrets.MAIN_IP }}
# username: ${{ secrets.GHA_USER }}
# key: ${{ secrets.GHA_SSH }}
# passphrase: ${{ secrets.GHA_PW }}
# script: |
# eval `ssh-agent -s`
# cd ./_server/${{ vars.REPO_NAME }}/dev/
# rm -rf ./${{ vars.REPO_NAME }}
# ssh-add ~/.ssh/${{ secrets.REPO_SSH_NAME }}
# git clone [email protected]:squeeble-ink/${{ vars.REPO_NAME }}.git
# cd ./${{ vars.REPO_NAME }}
# git checkout develop
# rm ./nginx/prd.conf
# rm ./nginx/prd-location.conf
# docker compose up dev -d --build
54 changes: 27 additions & 27 deletions .github/workflows/deploy-prd.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: Deploy Node.js CI - DO-001
# name: Deploy Node.js CI - DO-001

on:
push:
branches: [main]
# on:
# push:
# branches: [main]

jobs:
build:
runs-on: [ubuntu-22.04]
env:
NODE_ENV: production
# jobs:
# build:
# runs-on: [ubuntu-22.04]
# env:
# NODE_ENV: production

steps:
- name: Deploy production
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.MAIN_IP }}
username: ${{ secrets.GHA_USER }}
key: ${{ secrets.GHA_SSH }}
passphrase: ${{ secrets.GHA_PW }}
script: |
eval `ssh-agent -s`
cd ./_server/${{ vars.REPO_NAME }}/prd/
rm -rf ./${{ vars.REPO_NAME }}
ssh-add ~/.ssh/${{ secrets.REPO_SSH_NAME }}
git clone [email protected]:squeeble-ink/${{ vars.REPO_NAME }}.git
cd ./${{ vars.REPO_NAME }}
rm ./nginx/dev.conf
rm ./nginx/dev-location.conf
docker compose up prd -d --build
# steps:
# - name: Deploy production
# uses: appleboy/ssh-action@master
# with:
# host: ${{ secrets.MAIN_IP }}
# username: ${{ secrets.GHA_USER }}
# key: ${{ secrets.GHA_SSH }}
# passphrase: ${{ secrets.GHA_PW }}
# script: |
# eval `ssh-agent -s`
# cd ./_server/${{ vars.REPO_NAME }}/prd/
# rm -rf ./${{ vars.REPO_NAME }}
# ssh-add ~/.ssh/${{ secrets.REPO_SSH_NAME }}
# git clone [email protected]:squeeble-ink/${{ vars.REPO_NAME }}.git
# cd ./${{ vars.REPO_NAME }}
# rm ./nginx/dev.conf
# rm ./nginx/dev-location.conf
# docker compose up prd -d --build
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ typings/
# Output of 'npm pack'
*.tgz

# Yarn Non Zero Installs config
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Yarn Integrity file
.yarn-integrity

Expand Down
Loading