-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from LetsExercise/feat-cicd
[Feat] github action 작성 & scss 잘못된 변수 참조 제거
- Loading branch information
Showing
4 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
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,31 @@ | ||
name: Deploy to Linux Server | ||
|
||
on: | ||
push: | ||
branches: [ develop ] | ||
pull_request: | ||
branches: [ develop ] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install sshpass | ||
run: sudo apt-get install -y sshpass | ||
|
||
- name: Deploy and start the project | ||
env: | ||
SSH_IP: ${{ secrets.SSH_IP }} | ||
SSH_PASSWORD: ${{ secrets.SSH_PASSWORD }} | ||
SSH_PORT: ${{ secrets.SSH_PORT }} | ||
run: | | ||
sshpass -p $SSH_PASSWORD ssh -o StrictHostKeyChecking=no -p $SSH_PORT castberry@$SSH_IP << 'EOF' | ||
cd /home/castberry/dailypet | ||
git pull | ||
npm install | ||
pm2 restart dailypet-dev || pm2 start npm --name "dailypet-dev" -- run start | ||
EOF |
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,18 @@ | ||
server { | ||
listen 3650 ssl; | ||
server_name castberry.kr; | ||
|
||
ssl_certificate /etc/letsencrypt/live/castberry.kr/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/castberry.kr/privkey.pem; | ||
ssl_protocols TLSv1.2 TLSv1.3; | ||
ssl_prefer_server_ciphers on; | ||
|
||
location / { | ||
proxy_pass http://localhost:36500; | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection 'upgrade'; | ||
proxy_set_header Host $host; | ||
proxy_cache_bypass $http_upgrade; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@use '../../lib/styles/palette' as *; | ||
|
||
.main{ | ||
} | ||
} | ||
|