From a22639ed579b877bb44e23c5831fafc46f77368f Mon Sep 17 00:00:00 2001 From: Khyojun Date: Sun, 16 Jun 2024 18:09:38 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20#140=20-=20=EC=9D=B4=EC=A0=84=20?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20=ED=98=95=ED=83=9C=EB=8A=94=20=EB=B3=B5?= =?UTF-8?q?=EC=82=AC=EA=B0=80=20=EB=90=98=EC=A7=80=20=EC=95=8A=EC=95=84=20?= =?UTF-8?q?tar=20=ED=98=95=ED=83=9C=EB=A1=9C=20=EB=B0=94=EA=BF=94=EC=84=9C?= =?UTF-8?q?=20=EB=B3=B5=EC=82=AC=20=EC=A7=84=ED=96=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gradle.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 2a66c40..3b7e961 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -53,8 +53,12 @@ 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 @@ -62,12 +66,11 @@ jobs: 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: