Skip to content

Commit

Permalink
πŸ’š Deploy μ›Œν¬ν”Œλ‘œμš° μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
waterfogSW committed Sep 22, 2024
1 parent 5cf640e commit 019aee8
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/cd-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 019aee8

Please sign in to comment.