diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 910450de..272f8a82 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -36,6 +36,11 @@ jobs: cd ./image/src/main/resources echo "${{ secrets.IMAGE_APPLICATION }}" > application.yml + - name: Make Fault application.yml + run: | + cd ./fault/src/main/resources + echo "${{ secrets.FAULT_APPLICATION }}" > application.yml + - name: Make Warehouse application.yml run: | cd ./warehouse/src/main/resources diff --git a/fault/Dockerfile b/fault/Dockerfile new file mode 100644 index 00000000..9d3a3cfe --- /dev/null +++ b/fault/Dockerfile @@ -0,0 +1,3 @@ +FROM openjdk:17-jdk-slim +ADD /fault/build/libs/*.jar fault.jar +ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/fault.jar"] \ No newline at end of file diff --git a/fault/src/main/resources/application.yaml b/fault/src/main/resources/application.yaml deleted file mode 100644 index efa2c13b..00000000 --- a/fault/src/main/resources/application.yaml +++ /dev/null @@ -1,25 +0,0 @@ -spring: - jpa: - show-sql: true - hibernate: - ddl-auto: validate - properties: - hibernate: - format_sql: true - dialect: org.hibernate.dialect.MySQL8Dialect - datasource: - url: jdbc:mysql://localhost:3306/baobab?useSSL=false&useUnicode=true&allowPublicKeyRetrieval=true - driver-class-name: com.mysql.cj.jdbc.Driver - username: root - password: 1234 - -jwt: - secret: - key: shinyangjunglee_baobab_passwordkey - access-token: - plus-hour: 1 - refresh-token: - plus-hour: 12 - -server: - port: 8084 \ No newline at end of file diff --git a/fault/src/main/resources/application.yml b/fault/src/main/resources/application.yml new file mode 100644 index 00000000..3602361d --- /dev/null +++ b/fault/src/main/resources/application.yml @@ -0,0 +1 @@ +temp \ No newline at end of file