Skip to content

Commit

Permalink
Merge pull request #130 from dnd-side-project/fix/redis-host
Browse files Browse the repository at this point in the history
♻️ refactor: add redis host env
  • Loading branch information
stophwan authored Sep 21, 2024
2 parents 2c6c4a5 + 602409a commit 1efb0b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
APPLE_CLIENT_ID=${{ secrets.APPLE_CLIENT_ID }}
ACCESS_SECRET=${{ secrets.ACCESS_SECRET }}
REFRESH_SECRET=${{ secrets.REFRESH_SECRET }}
REDIS_HOST=${{ REDIS_HOST }}
- name: Docker Deploy executing remote ssh commands using ssh_key
uses: appleboy/ssh-action@v0.1.6
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ARG KAKAO_CLIENT_ID
ARG APPLE_CLIENT_ID
ARG ACCESS_SECRET
ARG REFRESH_SECRET
ARG REDIS_HOST

COPY /api/build/libs/api.jar app.jar

Expand All @@ -21,6 +22,7 @@ ENV KAKAO_CLIENT_ID=${KAKAO_CLIENT_ID}
ENV APPLE_CLIENT_ID=${APPLE_CLIENT_ID}
ENV ACCESS_SECRET=${ACCESS_SECRET}
ENV REFRESH_SECRET=${REFRESH_SECRET}
ENV REDIS_HOST=${REDIS_HOST}

EXPOSE 8080

Expand Down
2 changes: 1 addition & 1 deletion domain/redis/src/main/resources/redis-prod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
spring:
data:
redis:
host: blooming-redis
host: ${REDIS_HOST}
port: 6379

0 comments on commit 1efb0b6

Please sign in to comment.