Skip to content

Commit

Permalink
setting: (#672) slack webhook url 환경변수 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
zios0707 committed Aug 30, 2024
1 parent 7c4931d commit 1945b97
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/xquare-cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ jobs:
S3_BUCKET_NAME=${{ secrets.S3_BUCKET_NAME }}
FCM_FILE_URL=${{ secrets.FCM_FILE_URL }}
FLYWAY_ENABLED=${{ secrets.FLYWAY_ENABLED }}
BASELINE_ON_MIGRATE=${{ secrets.BASELINE_ON_MIGRATE }}
BASELINE_ON_MIGRATE=${{ secrets.BASELINE_ON_MIGRATE }}
SLACK_WEBHOOK_URL=${{ secrets.SLACK_WEBHOOK_URL }}
3 changes: 2 additions & 1 deletion .github/workflows/xquare-cd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ jobs:
S3_BUCKET_NAME=${{ secrets.S3_BUCKET_NAME }}
FCM_FILE_URL=${{ secrets.FCM_FILE_URL }}
FLYWAY_ENABLED=${{ secrets.FLYWAY_ENABLED }}
BASELINE_ON_MIGRATE=${{ secrets.BASELINE_ON_MIGRATE }}
BASELINE_ON_MIGRATE=${{ secrets.BASELINE_ON_MIGRATE }}
SLACK_WEBHOOK_URL=${{ secrets.SLACK_WEBHOOK_URL }}
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,8 @@ ENV FLYWAY_ENABLED ${FLYWAY_ENABLED}
ARG BASELINE_ON_MIGRATE
ENV BASELINE_ON_MIGRATE ${BASELINE_ON_MIGRATE}

ARG SLACK_WEBHOOK_URL
ENV SLACK_WEBHOOK_URL ${SLACK_WEBHOOK_URL}

COPY ./dms-infrastructure/build/libs/*.jar app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
5 changes: 4 additions & 1 deletion dms-infrastructure/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,7 @@ logging:
com:
amazonaws:
util:
EC2MetadataUtils: error
EC2MetadataUtils: error

slack:
url: ${SLACK_WEBHOOK_URL}

0 comments on commit 1945b97

Please sign in to comment.