diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..a1b4e51 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,17 @@ +name: Deploy + +on: + workflows: [ "Build dispatcher module", "Build node module" ] + types: + - completed + +jobs: + deploy: + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Deploy Application + run: echo "Deploying the application" \ No newline at end of file diff --git a/dispatcher/src/main/resources/application.yaml b/dispatcher/src/main/resources/application.yaml index 68ace21..9d809f4 100644 --- a/dispatcher/src/main/resources/application.yaml +++ b/dispatcher/src/main/resources/application.yaml @@ -4,9 +4,9 @@ server: enabled: false bot: - uri: ${BOT_URI:https://3ed0-87-117-189-157.ngrok-free.app} + uri: ${BOT_URI:unset} username: ${BOT_USERNAME:headh_v2_bot} - token: ${BOT_TOKEN:7361235631:AAGgia9VqWY6Q_o1pW2WTaLQ4d6vzLgRcOg} + token: ${BOT_TOKEN:token} spring: kafka: diff --git a/node/src/main/java/com/bipbup/NodeApplication.java b/node/src/main/java/com/bipbup/NodeApplication.java index 59f4f0b..fb7813f 100644 --- a/node/src/main/java/com/bipbup/NodeApplication.java +++ b/node/src/main/java/com/bipbup/NodeApplication.java @@ -7,6 +7,7 @@ import org.springframework.data.jpa.repository.config.EnableJpaRepositories; import org.springframework.scheduling.annotation.EnableScheduling; + @EnableCaching @EnableScheduling @EnableJpaRepositories("com.bipbup")