Skip to content

Commit 3248789

Browse files
authored
update : depoly.yml 파일 수정
tar 파일 정상 생성 확인
1 parent 96ef4d4 commit 3248789

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,3 @@ jobs:
5151
target: '/home/ubuntu/'
5252
strip_components: 1
5353

54-
- name: Extract and Deploy on EC2
55-
uses: appleboy/ssh-action@master
56-
with:
57-
host: ${{ secrets.EC2_HOST }}
58-
username: ${{ secrets.EC2_USERNAME }}
59-
key: ${{ secrets.EC2_SSH_PRIVATE_KEY }}
60-
script: |
61-
cd /home/ubuntu/
62-
tar -xzf build.tar.gz
63-
sudo rm -rf /etc/nginx/html/*
64-
sudo mv * /etc/nginx/html/
65-
cd /etc/nginx/html
66-
yarn install --frozen-lockfile
67-
pm2 restart to-hero
68-
sudo docker exec nginx nginx -s reload
69-
rm -f /home/ubuntu/build.tar.gz

0 commit comments

Comments
 (0)