diff --git a/.github/workflows/flex-templates.yml b/.github/workflows/flex-templates.yml index 2c5ecaee..7187ed4f 100644 --- a/.github/workflows/flex-templates.yml +++ b/.github/workflows/flex-templates.yml @@ -12,39 +12,48 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup - - run: sbt 'set assemblyOutputPath in assembly := new File("./app.jar")' tollApplication/assembly + - run: sbt tollApplication/assembly + - run: ls -R - uses: actions/upload-artifact@v3 with: - path: ./app.jar + path: ./toll-application/target/scala-2.13/assembly.jar - build-batch: + test: runs-on: ubuntu-latest needs: [assembly] steps: - uses: actions/checkout@v4 - uses: actions/download-artifact@v3 - - uses: google-github-actions/auth@v1 - with: - credentials_json: "${{ secrets.GOOGLE_CREDENTIALS }}" - - uses: ./.github/actions/build-flex-template - with: - template_file: gs://playground-272019-toll-application/templates/toll-application-batch.json - image_gcr: europe-west1-docker.pkg.dev/playground-272019/toll-application/toll-application-batch:latest - jar: ./app.jar - main_class: org.mkuthan.streamprocessing.toll.application.batch.TollBatchJob + - run: ls -R - build-streaming: - runs-on: ubuntu-latest - needs: [assembly] - steps: - - uses: actions/checkout@v4 - - uses: actions/download-artifact@v3 - - uses: google-github-actions/auth@v1 - with: - credentials_json: "${{ secrets.GOOGLE_CREDENTIALS }}" - - uses: ./.github/actions/build-flex-template - with: - template_file: gs://playground-272019-toll-application/templates/toll-application-streaming.json - image_gcr: europe-west1-docker.pkg.dev/playground-272019/toll-application/toll-application-streaming:latest - jar: ./app.jar - main_class: org.mkuthan.streamprocessing.toll.application.streaming.TollStreamingJob + # build-batch: + # runs-on: ubuntu-latest + # needs: [assembly] + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/download-artifact@v3 + # - uses: google-github-actions/auth@v1 + # with: + # credentials_json: "${{ secrets.GOOGLE_CREDENTIALS }}" + # - uses: ./.github/actions/build-flex-template + # with: + # template_file: gs://playground-272019-toll-application/templates/toll-application-batch.json + # image_gcr: europe-west1-docker.pkg.dev/playground-272019/toll-application/toll-application-batch:latest + # jar: ./app.jar + # main_class: org.mkuthan.streamprocessing.toll.application.batch.TollBatchJob + + # build-streaming: + # runs-on: ubuntu-latest + # needs: [assembly] + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/download-artifact@v3 + # - uses: google-github-actions/auth@v1 + # with: + # credentials_json: "${{ secrets.GOOGLE_CREDENTIALS }}" + # - uses: ./.github/actions/build-flex-template + # with: + # template_file: gs://playground-272019-toll-application/templates/toll-application-streaming.json + # image_gcr: europe-west1-docker.pkg.dev/playground-272019/toll-application/toll-application-streaming:latest + # jar: ./app.jar + # main_class: org.mkuthan.streamprocessing.toll.application.streaming.TollStreamingJob diff --git a/project/Settings.scala b/project/Settings.scala index 94f16ab4..5adc5bf1 100644 --- a/project/Settings.scala +++ b/project/Settings.scala @@ -52,6 +52,7 @@ object Settings { ) val assemblySettings = Seq( + assembly / assemblyJarName := "assembly.jar", assembly / assemblyMergeStrategy := { case s if s.endsWith(".class") => MergeStrategy.last case s if s.endsWith(".proto") => MergeStrategy.last