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" ]}'