diff --git a/.github/workflows/cd-dev.yaml b/.github/workflows/cd-dev.yaml index 83029f6..ea8b174 100644 --- a/.github/workflows/cd-dev.yaml +++ b/.github/workflows/cd-dev.yaml @@ -100,27 +100,6 @@ jobs: run: | zip -r deploy.zip Dockerrun.aws.json - - name: Output Dockerrun.aws.json for debugging - env: - DOCKERRUN_CONTENT: $(cat Dockerrun.aws.json) - run: | - # 비밀 값 키 목록 정의 (예: SECRET_KEY, DB_PASSWORD 등) - SECRET_KEYS=("SECRET_KEY" "DB_PASSWORD" "API_TOKEN") - - # Dockerrun.aws.json 내용을 임시 파일에 저장 - cat Dockerrun.aws.json > temp_dockerrun.json - - # 비밀 값 마스킹 처리 - for KEY in "${SECRET_KEYS[@]}"; do - sed -i "s/\"$KEY\": \".*\"/\"$KEY\": \"***\"/g" temp_dockerrun.json - done - - echo "Dockerrun.aws.json content (secrets masked):" - cat temp_dockerrun.json - - # 임시 파일 삭제 - rm temp_dockerrun.json - - name: Deploy to Elastic Beanstalk uses: einaregilsson/beanstalk-deploy@v22 with: