Skip to content

Commit

Permalink
[fix] #140 - 이전 파일 형태는 복사가 되지 않아 tar 형태로 바꿔서 복사 진행
Browse files Browse the repository at this point in the history
  • Loading branch information
khyojun committed Jun 16, 2024
1 parent 12f31b3 commit a22639e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,24 @@ jobs:
- name: Verify docker-compose.yml exists
run: |
ls -la docker-compose.yml
ls -la docker-compose.yml
- name: Compress files
run: |
tar -czvf deploy-files.tar.gz docker-compose.yml .env
ls -la deploy-files.tar.gz # Ensure the tar file is created
- name: Copy files to EC2
uses: appleboy/scp-action@master
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USER }}
key: ${{ secrets.EC2_SSH_KEY }}
source: |
./docker-compose.yml
./.env
source: deploy-files.tar.gz
target: "/home/${{ secrets.EC2_USER }}/"
debug: true


- name: Deploy to EC2
uses: appleboy/ssh-action@master
with:
Expand Down

0 comments on commit a22639e

Please sign in to comment.