Skip to content

Commit 9a6554b

Browse files
authored
[Deploy] deploy-express.yml ec2 파일 경로수정 (#177)
* Revert "[Deploy] Backend Server CI/CD 구축 (#172)" This reverts commit a5202ad. * Fix: packageManager 버전 수정 * Deploy: deploy-express.yml 생성 * Remove: deploy.sh 삭제 * Chore: packageManager 버전 수정정 * Fix: pnpm 버전을 package.json과 일치하도록 수정 * Refactor: deploy-cloudfront.yml 최적화 - Actions 버전 업데이트 (checkout, setup-node, pnpm-action) - Node.js 20.x 버전으로 업그레이드 - pnpm 캐싱 추가 - --frozen-lockfile 플래그 추가 * Fix: --frozen-lockfile 삭제제 * Fix: EC2 경로 수정 * Fix: s3:// 접두사 추가
1 parent 16d00d4 commit 9a6554b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/deploy-cloudfront.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
aws-region: ${{ secrets.AWS_REGION }}
4343

4444
- name: Deploy to S3
45-
run: aws s3 sync ./${{ secrets.BUILD_DIRECTORY }} ${{ secrets.AWS_S3_BUCKET_NAME }} --delete
45+
run: aws s3 sync ./${{ secrets.BUILD_DIRECTORY }} s3://${{ secrets.AWS_S3_BUCKET_NAME }} --delete
4646

4747
- name: CloudFront Invalidate Cache
4848
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }} --paths '/*'

.github/workflows/deploy-express.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ jobs:
3939
AWS_EC2_USER: ${{ secrets.AWS_EC2_USER }}
4040
run: |
4141
ssh -o StrictHostKeyChecking=no "$AWS_EC2_USER@$AWS_EC2_HOST" << 'EOF'
42-
cd /home/ubuntu/build/codeit-resources
42+
cd /home/ubuntu/codeit-resources
4343
git pull origin develop
44-
pnpm install --frozen-lockfile
44+
pnpm install
4545
pnpm --filter=api build
4646
pm2 restart codeit-server
4747
EOF

0 commit comments

Comments
 (0)