diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index ce65a798..15d3a734 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -38,15 +38,20 @@ jobs: zip -r deployment-package.zip baebae-BE/build/libs/baebae-BE-0.0.1-SNAPSHOT.jar - name: Configure AWS CLI for Naver Cloud - uses: aws-actions/configure-aws-credentials@v4 - with: - aws-access-key-id: ${{ secrets.NAVER_ACCESS_KEY }} - aws-secret-access-key: ${{ secrets.NAVER_SECRET_KEY }} - aws-region: ap-northeast-2 + - uses: actions/checkout@v2 + + - name: Set up AWS CLI Environment + run: | + # 환경 변수 설정 + echo "Setting up AWS CLI Environment" + export AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY }} + export AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_KEY }} + export AWS_DEFAULT_REGION=us-east-2 # AWS 리전 설정 + - name: Upload files to Naver Cloud Object Storage run: | - aws --endpoint-url=https://kr.object.ncloudstorage.com s3 cp deployment-package.zip s3://baebae-bucket/deployment-package.zip + aws --endpoint-url=https://kr.object.ncloudstorage.com s3 ls s3://baebae-bucket - name: Deploy to Naver Cloud Object Storage env: