-
Notifications
You must be signed in to change notification settings - Fork 8
131 lines (121 loc) · 5.25 KB
/
cpi-cicd-pipeline.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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: cpi-cicd-pipeline
on:
workflow_dispatch:
push:
branches:
- github-actions
jobs:
# Unit test
unit_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
- name: 'Local unit test with Maven'
run: mvn clean test
# Update designtime
update:
runs-on: ubuntu-latest
needs: unit_test
container:
image: engswee/flashpipe:latest
steps:
- uses: actions/checkout@v4
- name: 'Update/Upload Groovy XML Transformation to design time'
uses: engswee/flashpipe-action/update/artifact@v1
with:
tmn-host: equaliseit.it-cpi023.cfapps.eu20-001.hana.ondemand.com
oauth-host: equaliseit.authentication.eu20.hana.ondemand.com
oauth-clientid: ${{ secrets.DEV_CLIENT_ID }}
oauth-clientsecret: ${{ secrets.DEV_CLIENT_SECRET }}
artifact-id: GroovyXMLTransformation
artifact-name: Groovy XML Transformation
package-id: FlashPipeDemo
package-name: FlashPipe Demo
dir-artifact-relative: FlashPipe Demo/Groovy XML Transformation
- name: 'Update/Upload Sample_Message_Mapping to design time'
uses: engswee/flashpipe-action/update/artifact@v1
with:
tmn-host: equaliseit.it-cpi023.cfapps.eu20-001.hana.ondemand.com
oauth-host: equaliseit.authentication.eu20.hana.ondemand.com
oauth-clientid: ${{ secrets.DEV_CLIENT_ID }}
oauth-clientsecret: ${{ secrets.DEV_CLIENT_SECRET }}
artifact-id: Sample_Message_Mapping
artifact-name: Sample Message Mapping
package-id: FlashPipeDemo
package-name: FlashPipe Demo
dir-artifact-relative: FlashPipe Demo/Sample_Message_Mapping
artifact-type: MessageMapping
- name: 'Update/Upload Sample_Script_Collection to design time'
uses: engswee/flashpipe-action/update/artifact@v1
with:
tmn-host: equaliseit.it-cpi023.cfapps.eu20-001.hana.ondemand.com
oauth-host: equaliseit.authentication.eu20.hana.ondemand.com
oauth-clientid: ${{ secrets.DEV_CLIENT_ID }}
oauth-clientsecret: ${{ secrets.DEV_CLIENT_SECRET }}
artifact-id: Sample_Script_Collection
artifact-name: Sample Script Collection
package-id: FlashPipeDemo
package-name: FlashPipe Demo
dir-artifact-relative: FlashPipe Demo/Sample_Script_Collection
artifact-type: ScriptCollection
- name: 'Update/Upload Sample_Value_Mapping to design time'
uses: engswee/flashpipe-action/update/artifact@v1
with:
tmn-host: equaliseit.it-cpi023.cfapps.eu20-001.hana.ondemand.com
oauth-host: equaliseit.authentication.eu20.hana.ondemand.com
oauth-clientid: ${{ secrets.DEV_CLIENT_ID }}
oauth-clientsecret: ${{ secrets.DEV_CLIENT_SECRET }}
artifact-id: Sample_Value_Mapping
artifact-name: Sample Value Mapping
package-id: FlashPipeDemo
package-name: FlashPipe Demo
dir-artifact-relative: FlashPipe Demo/Sample_Value_Mapping
artifact-type: ValueMapping
# Deploy to runtime
deploy:
runs-on: ubuntu-latest
needs: update
container:
image: engswee/flashpipe:latest
steps:
- uses: actions/checkout@v4
- name: 'Deploy Groovy XML Transformation to runtime'
uses: engswee/flashpipe-action/deploy@v1
with:
tmn-host: equaliseit.it-cpi023.cfapps.eu20-001.hana.ondemand.com
oauth-host: equaliseit.authentication.eu20.hana.ondemand.com
oauth-clientid: ${{ secrets.DEV_CLIENT_ID }}
oauth-clientsecret: ${{ secrets.DEV_CLIENT_SECRET }}
artifact-ids: GroovyXMLTransformation
- name: 'Deploy Sample_Message_Mapping to runtime'
uses: engswee/flashpipe-action/deploy@v1
with:
tmn-host: equaliseit.it-cpi023.cfapps.eu20-001.hana.ondemand.com
oauth-host: equaliseit.authentication.eu20.hana.ondemand.com
oauth-clientid: ${{ secrets.DEV_CLIENT_ID }}
oauth-clientsecret: ${{ secrets.DEV_CLIENT_SECRET }}
artifact-ids: Sample_Message_Mapping
artifact-type: MessageMapping
- name: 'Deploy Sample_Script_Collection to runtime'
uses: engswee/flashpipe-action/deploy@v1
with:
tmn-host: equaliseit.it-cpi023.cfapps.eu20-001.hana.ondemand.com
oauth-host: equaliseit.authentication.eu20.hana.ondemand.com
oauth-clientid: ${{ secrets.DEV_CLIENT_ID }}
oauth-clientsecret: ${{ secrets.DEV_CLIENT_SECRET }}
artifact-ids: Sample_Script_Collection
artifact-type: ScriptCollection
- name: 'Deploy Sample_Value_Mapping to runtime'
uses: engswee/flashpipe-action/deploy@v1
with:
tmn-host: equaliseit.it-cpi023.cfapps.eu20-001.hana.ondemand.com
oauth-host: equaliseit.authentication.eu20.hana.ondemand.com
oauth-clientid: ${{ secrets.DEV_CLIENT_ID }}
oauth-clientsecret: ${{ secrets.DEV_CLIENT_SECRET }}
artifact-ids: Sample_Value_Mapping
artifact-type: ValueMapping