Skip to content

Commit

Permalink
Merge pull request #43 from kogepanh/main
Browse files Browse the repository at this point in the history
#2 fix ci/cd
  • Loading branch information
kogepanh authored Jul 27, 2021
2 parents 135053c + ea762e2 commit 238a9b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- run: chmod 600 ./aws_lightsail_key

- run: ssh -o StrictHostKeyChecking=no -i ./aws_lightsail_key ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_HOST }} "cd /var/www/html/mrc && bash scripts/rebuild.sh"
- run: ssh -o StrictHostKeyChecking=no -i ./aws_lightsail_key ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_HOST }} "cd /var/www/html/mrc && git pull origin main && bash scripts/rebuild.sh"

- uses: rtCamp/action-slack-notify@v2
env:
Expand Down
1 change: 0 additions & 1 deletion scripts/rebuild.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash

git pull origin main
yarn install --production

if [ -z "`ps aux | grep "next build" | grep -v grep`" ]; then
Expand Down

0 comments on commit 238a9b7

Please sign in to comment.