-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (54 loc) · 1.94 KB
/
flex-templates.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Build flex templates
on:
workflow_dispatch: ~
push:
branches:
- main
jobs:
assembly:
runs-on: ubuntu-latest
steps:
- 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:
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
# 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