Skip to content

Commit

Permalink
chore: loki 주소를 github secrets로 주입받도록 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Dompoo committed Sep 19, 2024
1 parent f50ad66 commit e391c13
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
dir: './client/src/main/resources/firebase/'

- name: Build with Gradle
run: ./gradlew clean build -x test -Dloki.url=${{ secrets.MONITORING_SERVER_URL }}
run: ./gradlew clean build -x test

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -74,6 +74,7 @@ jobs:
APPLE_CLIENT_ID=${{ secrets.APPLE_CLIENT_ID }}
ACCESS_SECRET=${{ secrets.ACCESS_SECRET }}
REFRESH_SECRET=${{ secrets.REFRESH_SECRET }}
MONITORING_SERVER_URL=${{ secrets.MONITORING_SERVER_URL }}
- 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 MONITORING_SERVER_URL

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 MONITORING_SERVER_URL=${MONITORING_SERVER_URL}

EXPOSE 8080

Expand Down
2 changes: 1 addition & 1 deletion monitoring/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<appender name="LOKI" class="com.github.loki4j.logback.Loki4jAppender">
<http>
<url>${loki.url}</url>
<url>${LOKI_URL}</url>
</http>
<format>
<label>
Expand Down

0 comments on commit e391c13

Please sign in to comment.