Skip to content

Commit

Permalink
Flex template
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuthan committed Oct 23, 2023
1 parent b3e1c11 commit e4bcdb5
Showing 1 changed file with 25 additions and 34 deletions.
59 changes: 25 additions & 34 deletions .github/workflows/flex-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,47 +13,38 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: sbt tollApplication/assembly
- run: ls -R
- uses: actions/upload-artifact@v3
with:
path: ./toll-application/target/scala-2.13/assembly.jar

test:
build-batch:
runs-on: ubuntu-latest
needs: [assembly]
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- run: ls -R

# 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
- 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: ./artifact/assembly.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
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: ./artifact/assembly.jar
main_class: org.mkuthan.streamprocessing.toll.application.streaming.TollStreamingJob

0 comments on commit e4bcdb5

Please sign in to comment.