Skip to content

Commit

Permalink
Merge pull request #47 from Tave-13th-Project-Team-4-Fiurinee/feature…
Browse files Browse the repository at this point in the history
…/ci-cd

ci: 환경변수 추가
  • Loading branch information
qormoon authored Jul 5, 2024
2 parents d20badc + c52ebbc commit 5485d4e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dev_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,12 @@ jobs:
echo "KAKAO_CLIENT_ID=${{ secrets.KAKAO_CLIENT_ID }}" >> ~/deploy/.env
echo "KAKAO_CLIENT_SECRET=${{ secrets.KAKAO_CLIENT_SECRET }}" >> ~/deploy/.env
echo "JWT_SECRET_KEY=${{ secrets.JWT_SECRET_KEY }}" >> ~/deploy/.env
echo "MAIL_USERNAME=${{ secrets.MAIL_USERNAME }}" >> ~/deploy/.env
echo "MAIL_PASSWORD=${{ secrets.MAIL_PASSWORD }}" >> ~/deploy/.env
echo "SMS_API_KEY=${{ secrets.SMS_API_KEY }}" >> ~/deploy/.env
echo "SMS_SECRET_KEY=${{ secrets.SMS_SECRET_KEY }}" >> ~/deploy/.env
# echo "MAIL_USERNAME=${{ secrets.MAIL_USERNAME }}" >> ~/deploy/.env
# echo "MAIL_PASSWORD=${{ secrets.MAIL_PASSWORD }}" >> ~/deploy/.env

sudo docker-compose -f ~/deploy/docker-compose.yml pull
sudo docker-compose -f ~/deploy/docker-compose.yml up -d
sudo docker image prune -f
Expand Down
7 changes: 5 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ services:
KAKAO_CLIENT_ID: ${KAKAO_CLIENT_ID}
KAKAO_CLIENT_SECRET: ${KAKAO_CLIENT_SECRET}
JWT_SECRET_KEY: ${JWT_SECRET_KEY}
MAIL_USERNAME : ${MAIL_USERNAME}
MAIL_PASSWORD : ${MAIL_PASSWORD}
SMS_API_KEY: ${SMS_API_KEY}
SMS_SECRET_KEY: ${SMS_SECRET_KEY}
# MAIL_USERNAME : ${MAIL_USERNAME}
# MAIL_PASSWORD : ${MAIL_PASSWORD}

hibernate_ddl_auto: update
REDIS_HOST: redis
depends_on:
Expand Down

0 comments on commit 5485d4e

Please sign in to comment.