From c96451d866cabbdaaa359beeaec9e6ee70f939b0 Mon Sep 17 00:00:00 2001 From: haeyonghahn Date: Sat, 1 Mar 2025 22:37:47 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20main=20=EB=B8=8C=EB=9E=9C=EC=B9=98=20ad?= =?UTF-8?q?min,=20client=20=EB=B0=B0=ED=8F=AC=20=ED=8C=8C=EC=9D=B4?= =?UTF-8?q?=ED=94=84=EB=9D=BC=EC=9D=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main-admin-deploy-v1.yml | 5 ++++- .github/workflows/main-client-deploy-v1.yml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main-admin-deploy-v1.yml b/.github/workflows/main-admin-deploy-v1.yml index c9da8c86..6bb8d6c7 100644 --- a/.github/workflows/main-admin-deploy-v1.yml +++ b/.github/workflows/main-admin-deploy-v1.yml @@ -84,4 +84,7 @@ jobs: aws ssm send-command \ --instance-ids $APP_INSTANCE_IDS \ --document-name "AWS-RunShellScript" \ - --parameters 'commands=["bash /home/ec2-user/backend_deploy.sh"]' + --parameters '{"commands":[ + "aws s3 cp s3://${{ secrets.O2O_BE_BUCKET }}/.env /home/ec2-user/backend", + "bash /home/ec2-user/backend_deploy.sh" + ]}' diff --git a/.github/workflows/main-client-deploy-v1.yml b/.github/workflows/main-client-deploy-v1.yml index e36fe659..3adb16a4 100644 --- a/.github/workflows/main-client-deploy-v1.yml +++ b/.github/workflows/main-client-deploy-v1.yml @@ -85,6 +85,6 @@ jobs: --instance-ids $APP_INSTANCE_IDS \ --document-name "AWS-RunShellScript" \ --parameters '{"commands":[ - "aws s3 cp s3://${{ secrets.O2O_BE_BUCKET }}/.env /home/ec2-user/backend --recursive", + "aws s3 cp s3://${{ secrets.O2O_BE_BUCKET }}/.env /home/ec2-user/backend", "bash /home/ec2-user/backend_deploy.sh" ]}'