Skip to content

Commit

Permalink
Chore: redis pw μΆ”κ°€
Browse files Browse the repository at this point in the history
  • Loading branch information
saokiritoni authored Nov 9, 2024
1 parent 1f5d8f4 commit 930bc98
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,19 @@ jobs:
sudo docker rm docker-test
fi
# ν™˜κ²½ λ³€μˆ˜ 파일 생성
echo "DB_URL=${{ secrets.DB_URL }}" > ~/.env
echo "DB_USERNAME=${{ secrets.DB_USERNAME }}" >> ~/.env
echo "DB_PASSWORD=${{ secrets.DB_PASSWORD }}" >> ~/.env
echo "REDIS_HOST=${{ secrets.REDIS_HOST }}" >> ~/.env
echo "REDIS_PASSWORD=${{ secrets.REDIS_PASSWORD }}" >> ~/.env
echo "REDIS_PORT=${{ secrets.REDIS_PORT }}" >> ~/.env
echo "SMTP_HOST=${{ secrets.SMTP_HOST }}" >> ~/.env
echo "SMTP_PORT=${{ secrets.SMTP_PORT }}" >> ~/.env
echo "SMTP_USERNAME=${{ secrets.SMTP_USERNAME }}" >> ~/.env
echo "SMTP_PASSWORD=${{ secrets.SMTP_PASSWORD }}" >> ~/.env

# μƒˆ μ»¨ν…Œμ΄λ„ˆ μ‹€ν–‰ 및 ν™˜κ²½ λ³€μˆ˜ 전달
sudo docker run -d --log-driver=syslog --name docker-test -p 8080:8080 \
--env-file ~/.env \
Expand All @@ -79,4 +92,3 @@ jobs:

# μ‚¬μš©ν•˜μ§€ μ•ŠλŠ” 이미지 및 μ»¨ν…Œμ΄λ„ˆ 정리
sudo docker image prune -a -f

0 comments on commit 930bc98

Please sign in to comment.