-
Notifications
You must be signed in to change notification settings - Fork 11
85 lines (76 loc) · 2.4 KB
/
upload_artifact.yaml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Upload Artifacts
run-name: Workflow run for ${{ github.ref }}
on:
push:
tags:
- '*'
jobs:
artifacts-upload-core:
runs-on: ubuntu-latest
steps:
- name: Get Tag Name
id: get-tag
run: echo "tag_name=${GITHUB_REF#refs/tags/}" >>$GITHUB_OUTPUT
- name: Checkout code
uses: actions/checkout@v4
- name: Setup JAVA
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: 'maven'
- name: Build Framework Artifacts
run: |
cd ./framework
mvn clean install -DskipTests
- name: Upload Framework Artifacts
uses: actions/upload-artifact@v4
with:
name: framework-${{ steps.get-tag.outputs.tag_name }}.jar
path: ./framework/target/framework-1.0.0.jar
if-no-files-found: error
- name: Build Dataset Registry Artifacts
run: |
cd ./dataset-registry
mvn clean install -DskipTests
- name: Upload Dataset Registry Artifacts
uses: actions/upload-artifact@v4
with:
name: dataset-registry-${{ steps.get-tag.outputs.tag_name }}.jar
path: ./dataset-registry/target/dataset-registry-1.0.0.jar
if-no-files-found: error
artifacts-upload-pipeline:
needs: artifacts-upload-core
runs-on: ubuntu-latest
strategy:
matrix:
include:
- image: "extractor"
- image: "preprocessor"
- image: "denormalizer"
- image: "transformer"
- image: "druid-router"
- image: "unified-pipeline"
- image: "master-data-processor"
steps:
- name: Get Tag Name
id: get-tag
run: echo "tag_name=${GITHUB_REF#refs/tags/}" >>$GITHUB_OUTPUT
- name: Checkout code
uses: actions/checkout@v4
- name: Setup JAVA
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: 'maven'
- name: Build Data Pipeline Artifacts
run: |
cd ./pipeline
mvn clean install -DskipTests
- name: Upload Data Pipeline Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{matrix.image}}-${{ steps.get-tag.outputs.tag_name }}.jar
path: ./pipeline/${{matrix.image}}/target/${{matrix.image}}-1.0.0.jar
if-no-files-found: error