forked from opensearch-project/data-prepper
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (46 loc) · 1.69 KB
/
Copy pathexamples-trace-analytics.yml
File metadata and controls
57 lines (46 loc) · 1.69 KB
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
#
# Builds the Trace Analytics Docker image(s).
# This will build the full Docker image for the sample-app which includes
# Python applications and installing onto the base Docker image.
# It also build the Java sample app and corresponding Docker image to
# ensure those continue to build.
#
name: Trace Analytics Sample App
on:
push:
branches: [ main ]
paths:
- 'examples/trace-analytics-sample-app/**'
pull_request:
paths:
- 'examples/trace-analytics-sample-app/**'
workflow_dispatch:
jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- name: Checkout Data Prepper
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
- name: Build Sample App
working-directory: examples/trace-analytics-sample-app
run: docker build -t sample-app sample-app
java-app-build:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
java-version: 17
distribution: temurin
- name: Checkout Data Prepper
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
- name: Set up Gradle
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
with:
add-job-summary: on-failure
- name: Build Analytics Service
working-directory: ./examples/trace-analytics-sample-app/sample-app/analytics-service
run: ./gradlew build
- name: Build Analytics Service Docker image
working-directory: ./examples/trace-analytics-sample-app/sample-app/analytics-service
run: docker build -t analytics-service .