diff --git a/.github/workflows/xquare-cd-dev.yml b/.github/workflows/xquare-cd-dev.yml index 463856297..5618e31b8 100644 --- a/.github/workflows/xquare-cd-dev.yml +++ b/.github/workflows/xquare-cd-dev.yml @@ -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 }} \ No newline at end of file + BASELINE_ON_MIGRATE=${{ secrets.BASELINE_ON_MIGRATE }} + SLACK_WEBHOOK_URL=${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file diff --git a/.github/workflows/xquare-cd-prod.yml b/.github/workflows/xquare-cd-prod.yml index 0137c86bf..6889edbff 100644 --- a/.github/workflows/xquare-cd-prod.yml +++ b/.github/workflows/xquare-cd-prod.yml @@ -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 }} \ No newline at end of file + BASELINE_ON_MIGRATE=${{ secrets.BASELINE_ON_MIGRATE }} + SLACK_WEBHOOK_URL=${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 2d15db82b..53b1d4922 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/dms-infrastructure/src/main/resources/application.yml b/dms-infrastructure/src/main/resources/application.yml index aa1b3a0a1..951cc5e9c 100644 --- a/dms-infrastructure/src/main/resources/application.yml +++ b/dms-infrastructure/src/main/resources/application.yml @@ -78,4 +78,7 @@ logging: com: amazonaws: util: - EC2MetadataUtils: error \ No newline at end of file + EC2MetadataUtils: error + +slack: + url: ${SLACK_WEBHOOK_URL} \ No newline at end of file