Skip to content

Commit

Permalink
Update deploy.yml (#50)
Browse files Browse the repository at this point in the history
* Update deploy.yml

rsync option 변경

* Update deploy.yml

* Update deploy.yml
  • Loading branch information
0321minji authored May 29, 2024
1 parent 13143f3 commit f2c6368
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on: # master 브랜치에 push될 경우만 수행
push:
branches:
- main
workflow_dispatch: # 수동 실행을 위한 이벤트 추가

jobs: # 아래의 jobs를 수행
build:
Expand All @@ -24,7 +25,7 @@ jobs: # 아래의 jobs를 수행
uses: aws-actions/amazon-ecr-login@v2

- name: create remote directory # ec2 서버에 접속해 리모트 디렉토리 생성
uses: appleboy/ssh-action@v0.1.5
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ubuntu
Expand All @@ -33,9 +34,9 @@ jobs: # 아래의 jobs를 수행
mkdir -p /home/ubuntu/UPCY_BE
- name: copy source via ssh key # ssh key로 현재 푸시된 소스를 서버에 복사 (rsync로 github runners와 ec2 동기화)
uses: burnett01/rsync-deployments@4.1
uses: burnett01/rsync-deployments@5.2
with:
switches: -avzr --delete
switches: -avzr --update #--delete 에서 update로 바꿈
remote_path: /home/ubuntu/UPCY_BE
remote_host: ${{ secrets.HOST }}
remote_user: ubuntu
Expand Down

0 comments on commit f2c6368

Please sign in to comment.