forked from apache/incubator-kie-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
452 lines (403 loc) · 22.9 KB
/
daily_dev_publish.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
name: "Daily dev :: Publish"
on:
schedule:
- cron: "0 2 * * *" # 2am UTC everyday
workflow_dispatch:
pull_request:
paths:
- ".github/workflows/daily_dev_publish.yml"
concurrency:
group: ${{ github.event.pull_request && format('daily-dev-publish-pr-{0}', github.event.pull_request.number) || format('daily-dev-publish-ref-{0}', github.ref_name) }}
cancel-in-progress: true
env:
TMPDIR: "${{ github.workspace }}/kie-tools/tmp"
jobs:
build:
if: github.repository == 'kiegroup/kie-tools'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
env:
KIE_SANDBOX_EXTENDED_SERVICES_VERSION: "0.0.0"
KIE_TOOLS_BUILD__buildContainerImages: ${{ matrix.os != 'windows-latest' }}
KIE_TOOLS_BUILD__runLinters: "false"
KIE_TOOLS_BUILD__runTests: "false"
KIE_TOOLS_BUILD__runIntegrationTests: "false"
DMN_DEV_DEPLOYMENT_BASE_IMAGE__registry: "quay.io"
DMN_DEV_DEPLOYMENT_BASE_IMAGE__account: "kie-tools"
DMN_DEV_DEPLOYMENT_BASE_IMAGE__name: "dmn-dev-deployment-base-image"
DMN_DEV_DEPLOYMENT_BASE_IMAGE__buildTags: "daily-dev"
ONLINE_EDITOR__dmnDevDeploymentBaseImageRegistry: "quay.io"
ONLINE_EDITOR__dmnDevDeploymentBaseImageAccount: "kie-tools"
ONLINE_EDITOR__dmnDevDeploymentBaseImageName: "dmn-dev-deployment-base-image"
ONLINE_EDITOR__dmnDevDeploymentBaseImageTag: "daily-dev"
ONLINE_EDITOR__corsProxyUrl: "https://daily-dev-cors-proxy-kie-sandbox.rhba-0ad6762cc85bcef5745bb684498c2436-0000.us-south.containers.appdomain.cloud"
EXTENDED_SERVICES__kieSandboxUrl: "https://kiegroup.github.io/kogito-online/dev"
KIE_SANDBOX__imageRegistry: "quay.io"
KIE_SANDBOX__imageAccount: "kie-tools"
KIE_SANDBOX__imageName: "kie-sandbox-image"
KIE_SANDBOX__imageBuildTags: "daily-dev"
KIE_SANDBOX_EXTENDED_SERVICES__imageRegistry: "quay.io"
KIE_SANDBOX_EXTENDED_SERVICES__imageAccount: "kie-tools"
KIE_SANDBOX_EXTENDED_SERVICES__imageName: "kie-sandbox-extended-services-image"
KIE_SANDBOX_EXTENDED_SERVICES__imageBuildTags: "daily-dev"
CORS_PROXY_IMAGE__imageRegistry: "quay.io"
CORS_PROXY_IMAGE__imageAccount: "kie-tools"
CORS_PROXY_IMAGE__imageName: "cors-proxy-image"
CORS_PROXY_IMAGE__imageBuildTags: "daily-dev"
OPENSHIFT_NAMESPACE: "kie-sandbox"
OPENSHIFT_PART_OF: "daily-dev-kie-sandbox-app"
DEPLOY_TAG: "daily-dev"
DASHBUILDER__viewerImageRegistry: "quay.io"
DASHBUILDER__viewerImageAccount: "kie-tools"
DASHBUILDER__viewerImageName: "dashbuilder-viewer-image"
DASHBUILDER__viewerImageBuildTags: "daily-dev"
SERVERLESS_LOGIC_WEB_TOOLS__dashbuilderViewerImageTag: "daily-dev"
SERVERLESS_LOGIC_WEB_TOOLS__swfBuilderImageRegistry: "quay.io"
SERVERLESS_LOGIC_WEB_TOOLS__swfBuilderImageAccount: "kie-tools"
SERVERLESS_LOGIC_WEB_TOOLS__swfBuilderImageName: "serverless-logic-web-tools-swf-builder-image"
SERVERLESS_LOGIC_WEB_TOOLS__swfBuilderImageTag: "daily-dev"
SERVERLESS_LOGIC_WEB_TOOLS__swfBuilderImageBuildTags: "daily-dev"
SERVERLESS_LOGIC_WEB_TOOLS__baseBuilderImageRegistry: "quay.io"
SERVERLESS_LOGIC_WEB_TOOLS__baseBuilderImageAccount: "kie-tools"
SERVERLESS_LOGIC_WEB_TOOLS__baseBuilderImageName: "serverless-logic-web-tools-base-builder-image"
SERVERLESS_LOGIC_WEB_TOOLS__baseBuilderImageTag: "daily-dev"
SERVERLESS_LOGIC_WEB_TOOLS__baseBuilderImageBuildTags: "daily-dev"
SERVERLESS_LOGIC_WEB_TOOLS__swfDevModeImageRegistry: "quay.io"
SERVERLESS_LOGIC_WEB_TOOLS__swfDevModeImageAccount: "kie-tools"
SERVERLESS_LOGIC_WEB_TOOLS__swfDevModeImageName: "serverless-logic-web-tools-swf-dev-mode-image"
SERVERLESS_LOGIC_WEB_TOOLS__swfDevModeImageTag: "daily-dev"
SERVERLESS_LOGIC_WEB_TOOLS__swfDevModeImageBuildTags: "daily-dev"
SERVERLESS_LOGIC_WEB_TOOLS__corsProxyUrl: "https://daily-dev-cors-proxy-kie-sandbox.rhba-0ad6762cc85bcef5745bb684498c2436-0000.us-south.containers.appdomain.cloud"
steps:
- name: "Support longpaths (Windows only)"
if: runner.os == 'Windows'
run: git config --system core.longpaths true
- name: "Clone kie-tools"
uses: actions/checkout@v3
with:
path: kie-tools
# This bash script will set an output version for this step. It can be used with steps.version.outputs.version
- name: "Output version"
id: version
run: |
cd kie-tools
echo "version=$(node -e "console.log(require('./package.json').version);")" >> $GITHUB_OUTPUT
shell: bash
- name: "Cache Maven packages"
if: github.event_name != 'pull_request'
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7
with:
path: ~/.m2
key: ${{ runner.os }}-daily-dev-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-daily-dev-m2
- name: "Setup environment"
uses: ./kie-tools/.github/actions/setup-env
with:
working_dir: kie-tools
- name: "Bootstrap"
id: bootstrap
uses: ./kie-tools/.github/actions/bootstrap
with:
working_dir: kie-tools
- name: "Build kie-tools"
env:
WEBPACK__minimize: "true"
WEBPACK__tsLoaderTranspileOnly: "false"
CHROME_EXTENSION__routerTargetOrigin: "https://kiegroup.github.io"
CHROME_EXTENSION__routerRelativePath: "kogito-online/dev/editors/"
SWF_CHROME_EXTENSION__routerTargetOrigin: "https://kiegroup.github.io"
SWF_CHROME_EXTENSION__routerRelativePath: "kogito-online/dev/editors/"
ONLINE_EDITOR__extendedServicesDownloadUrlLinux: "https://github.com/kiegroup/kie-tools/releases/download/${{ env.KIE_SANDBOX_EXTENDED_SERVICES_VERSION }}/kie_sandbox_extended_services_linux_${{ env.KIE_SANDBOX_EXTENDED_SERVICES_VERSION }}.tar.gz"
ONLINE_EDITOR__extendedServicesDownloadUrlMacOs: "https://github.com/kiegroup/kie-tools/releases/download/${{ env.KIE_SANDBOX_EXTENDED_SERVICES_VERSION }}/kie_sandbox_extended_services_macos_${{ env.KIE_SANDBOX_EXTENDED_SERVICES_VERSION }}.dmg"
ONLINE_EDITOR__extendedServicesDownloadUrlWindows: "https://github.com/kiegroup/kie-tools/releases/download/${{ env.KIE_SANDBOX_EXTENDED_SERVICES_VERSION }}/kie_sandbox_extended_services_windows_${{ env.KIE_SANDBOX_EXTENDED_SERVICES_VERSION }}.exe"
ONLINE_EDITOR__extendedServicesCompatibleVersion: "${{ env.KIE_SANDBOX_EXTENDED_SERVICES_VERSION }}"
ONLINE_EDITOR__buildInfo: "${{ steps.version.outputs.version }} (daily-dev) @ ${{ github.sha }}"
DISPLAY: ":99.0"
SERVERLESS_LOGIC_WEB_TOOLS__buildInfo: "${{ steps.version.outputs.version }} (daily-dev) @ ${{ github.sha }}"
run: |
cd kie-tools
pnpm -r build:prod
- name: "Upload Serverless Workflow VS Code Extension - KIE (Ubuntu only)"
if: runner.os == 'Linux'
uses: actions/upload-artifact@v3
with:
name: serverless-workflow-vscode-extension
path: kie-tools/packages/serverless-workflow-vscode-extension/dist/serverless_workflow_vscode_extension_${{ steps.version.outputs.version }}.vsix
- name: "Upload Dashbuilder VS Code Extension (Ubuntu only)"
if: runner.os == 'Linux'
uses: actions/upload-artifact@v3
with:
name: vscode-extension-dashbuilder-editor
path: kie-tools/packages/vscode-extension-dashbuilder-editor/dist/vscode_extension_dashbuilder_editor_${{ steps.version.outputs.version }}.vsix
- name: "Upload VS Code Extension (dev) (Ubuntu only)"
if: runner.os == 'Linux'
uses: actions/upload-artifact@v3
with:
name: vscode-extension
path: kie-tools/packages/kie-editors-dev-vscode-extension/dist/kie_editors_dev_vscode_extension_${{ steps.version.outputs.version }}.vsix
- name: "Upload Chrome Extension for KIE Editors (Ubuntu only)"
if: runner.os == 'Linux'
uses: actions/upload-artifact@v3
with:
name: chrome-extension
path: kie-tools/packages/chrome-extension-pack-kogito-kie-editors/dist/chrome_extension_kogito_kie_editors_${{ steps.version.outputs.version }}.zip
- name: "Upload Chrome Extension for Serverless Workflow Editor (Ubuntu only)"
if: runner.os == 'Linux'
uses: actions/upload-artifact@v3
with:
name: swf-chrome-extension
path: kie-tools/packages/chrome-extension-serverless-workflow-editor/dist/chrome_extension_serverless_workflow_editor_${{ steps.version.outputs.version }}.zip
- name: "Load docker built images to podman local registry"
if: runner.os == 'Linux'
run: docker images --format docker-daemon:{{.Repository}}:{{.Tag}} | grep -e '${{ env.KIE_SANDBOX_EXTENDED_SERVICES__imageName }}' -e '${{ env.CORS_PROXY_IMAGE__imageName }}' -e '${{ env.KIE_SANDBOX__imageName }}' | grep -v '<none>' | xargs podman pull
- name: "Push dmn-dev-deployment-base-image to quay.io (Ubuntu only)"
if: runner.os == 'Linux' && github.event_name != 'pull_request'
uses: redhat-actions/push-to-registry@v2
with:
image: "${{ env.DMN_DEV_DEPLOYMENT_BASE_IMAGE__name }}"
tags: "${{ env.DMN_DEV_DEPLOYMENT_BASE_IMAGE__buildTags }}"
registry: "${{ env.DMN_DEV_DEPLOYMENT_BASE_IMAGE__registry }}/${{ env.DMN_DEV_DEPLOYMENT_BASE_IMAGE__account }}"
username: "${{ env.DMN_DEV_DEPLOYMENT_BASE_IMAGE__account }}"
password: "${{ secrets.QUAY_REGISTRY_PASSWORD }}"
- name: "Clean up dmn-dev-deployment-base-image (Ubuntu only)"
if: runner.os == 'Linux'
run: |
cd kie-tools
podman image ls -q --filter reference=${{ env.DMN_DEV_DEPLOYMENT_BASE_IMAGE__name }} | xargs podman rmi
rm -rf ${{ env.TMPDIR }}/*
pnpm -F dmn-dev-deployment-base-image cleanup
cd -
- name: "Push kie-sandbox-extended-services-image to quay.io (Ubuntu only)"
if: runner.os == 'Linux' && github.event_name != 'pull_request'
uses: redhat-actions/push-to-registry@v2
with:
image: "${{ env.KIE_SANDBOX_EXTENDED_SERVICES__imageName }}"
tags: "${{ env.KIE_SANDBOX_EXTENDED_SERVICES__imageBuildTags }}"
registry: "${{ env.KIE_SANDBOX_EXTENDED_SERVICES__imageRegistry }}/${{ env.KIE_SANDBOX_EXTENDED_SERVICES__imageAccount }}"
username: "${{ env.KIE_SANDBOX_EXTENDED_SERVICES__imageAccount }}"
password: "${{ secrets.QUAY_REGISTRY_PASSWORD }}"
- name: "Deploy kie-sandbox-extended-services-image to OpenShift (Ubuntu only)"
id: deploy_kie_sandbox_extended_services_image
if: runner.os == 'Linux' && github.event_name != 'pull_request'
uses: ./kie-tools/.github/actions/deploy-openshift
with:
image_tag: ${{ env.DEPLOY_TAG }}
image_url: "${{ env.KIE_SANDBOX_EXTENDED_SERVICES__imageRegistry }}/${{ env.KIE_SANDBOX_EXTENDED_SERVICES__imageAccount }}/${{ env.KIE_SANDBOX_EXTENDED_SERVICES__imageName }}:${{ env.DEPLOY_TAG }}"
app_name: "daily-dev-kie-sandbox-extended-services"
part_of: ${{ env.OPENSHIFT_PART_OF }}
openshift_server: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
openshift_namespace: ${{ env.OPENSHIFT_NAMESPACE }}
deployment_icon: "golang"
- name: "Clean up kie-sandbox-extended-services-image (Ubuntu only)"
if: runner.os == 'Linux'
run: |
cd kie-tools
docker image ls -q --filter reference=${{ env.KIE_SANDBOX_EXTENDED_SERVICES__imageRegistry }}/${{ env.KIE_SANDBOX_EXTENDED_SERVICES__imageAccount }}/${{ env.KIE_SANDBOX_EXTENDED_SERVICES__imageName }} | xargs docker rmi
podman image ls -q --filter reference=${{ env.KIE_SANDBOX_EXTENDED_SERVICES__imageName }} | xargs podman rmi
rm -rf ${{ env.TMPDIR }}/*
pnpm -F kie-sandbox-extended-services-image cleanup
cd -
- name: "Push cors-proxy-image to quay.io (Ubuntu only)"
if: runner.os == 'Linux' && github.event_name != 'pull_request'
uses: redhat-actions/push-to-registry@v2
with:
image: "${{ env.CORS_PROXY_IMAGE__imageName }}"
tags: "${{ env.CORS_PROXY_IMAGE__imageBuildTags }}"
registry: "${{ env.CORS_PROXY_IMAGE__imageRegistry }}/${{ env.CORS_PROXY_IMAGE__imageAccount }}"
username: "${{ env.CORS_PROXY_IMAGE__imageAccount }}"
password: "${{ secrets.QUAY_REGISTRY_PASSWORD }}"
- name: "Deploy cors-proxy-image to OpenShift (Ubuntu only)"
id: deploy_cors_proxy_image
if: runner.os == 'Linux' && github.event_name != 'pull_request'
uses: ./kie-tools/.github/actions/deploy-openshift
with:
image_tag: ${{ env.DEPLOY_TAG }}
image_url: "${{ env.CORS_PROXY_IMAGE__imageRegistry }}/${{ env.CORS_PROXY_IMAGE__imageAccount }}/${{ env.CORS_PROXY_IMAGE__imageName }}:${{ env.DEPLOY_TAG }}"
app_name: "daily-dev-cors-proxy"
part_of: ${{ env.OPENSHIFT_PART_OF }}
openshift_server: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
openshift_namespace: ${{ env.OPENSHIFT_NAMESPACE }}
deployment_icon: "nodejs"
- name: "Clean up cors-proxy-image (Ubuntu only)"
if: runner.os == 'Linux'
run: |
cd kie-tools
docker image ls -q --filter reference=${{ env.CORS_PROXY_IMAGE__imageRegistry }}/${{ env.CORS_PROXY_IMAGE__imageAccount }}/${{ env.CORS_PROXY_IMAGE__imageName }} | xargs docker rmi
podman image ls -q --filter reference=${{ env.CORS_PROXY_IMAGE__imageName }} | xargs podman rmi
rm -rf ${{ env.TMPDIR }}/*
pnpm -F cors-proxy-image cleanup
cd -
- name: "Push kie-sandbox-image to quay.io (Ubuntu only)"
if: runner.os == 'Linux' && github.event_name != 'pull_request'
uses: redhat-actions/push-to-registry@v2
with:
image: "${{ env.KIE_SANDBOX__imageName }}"
tags: "${{ env.KIE_SANDBOX__imageBuildTags }}"
registry: "${{ env.KIE_SANDBOX__imageRegistry }}/${{ env.KIE_SANDBOX__imageAccount }}"
username: "${{ env.KIE_SANDBOX__imageAccount }}"
password: "${{ secrets.QUAY_REGISTRY_PASSWORD }}"
- name: "Prepare environment variables for OpenShift deployment (Ubuntu only)"
if: runner.os == 'Linux' && github.event_name != 'pull_request'
shell: bash
run: |
echo "KIE_SANDBOX_EXTENDED_SERVICES_URL=${{ steps.deploy_kie_sandbox_extended_services_image.outputs.route_url }}" >> deployment.env
echo "KIE_SANDBOX_CORS_PROXY_URL=${{ steps.deploy_cors_proxy_image.outputs.route_url }}" >> deployment.env
- name: "Deploy kie-sandbox-image to OpenShift (Ubuntu only)"
if: runner.os == 'Linux' && github.event_name != 'pull_request'
uses: ./kie-tools/.github/actions/deploy-openshift
with:
image_tag: ${{ env.DEPLOY_TAG }}
image_url: "${{ env.KIE_SANDBOX__imageRegistry }}/${{ env.KIE_SANDBOX__imageAccount }}/${{ env.KIE_SANDBOX__imageName }}:${{ env.DEPLOY_TAG }}"
app_name: "daily-dev-kie-sandbox"
part_of: ${{ env.OPENSHIFT_PART_OF }}
openshift_server: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
openshift_namespace: ${{ env.OPENSHIFT_NAMESPACE }}
deployment_envvars_file_path: ./deployment.env
deployment_icon: "js"
- name: "Clean up kie-sandbox-image (Ubuntu only)"
if: runner.os == 'Linux'
run: |
cd kie-tools
docker image ls -q --filter reference=${{ env.KIE_SANDBOX__imageRegistry }}/${{ env.KIE_SANDBOX__imageAccount }}/${{ env.KIE_SANDBOX__imageName }} | xargs docker rmi
podman image ls -q --filter reference=${{ env.KIE_SANDBOX__imageName }} | xargs podman rmi
rm -rf ${{ env.TMPDIR }}/*
pnpm -F kie-sandbox-image cleanup
cd -
- name: "Push serverless-logic-web-tools-swf-builder-image to quay.io (Ubuntu only)"
if: runner.os == 'Linux' && github.event_name != 'pull_request'
uses: redhat-actions/push-to-registry@v2
with:
image: "${{ env.SERVERLESS_LOGIC_WEB_TOOLS__swfBuilderImageName }}"
tags: "${{ env.SERVERLESS_LOGIC_WEB_TOOLS__swfBuilderImageBuildTags }}"
registry: "${{ env.SERVERLESS_LOGIC_WEB_TOOLS__swfBuilderImageRegistry }}/${{ env.SERVERLESS_LOGIC_WEB_TOOLS__swfBuilderImageAccount }}"
username: "${{ env.SERVERLESS_LOGIC_WEB_TOOLS__swfBuilderImageAccount }}"
password: "${{ secrets.QUAY_REGISTRY_PASSWORD }}"
- name: "Clean up serverless-logic-web-tools-swf-builder-image (Ubuntu only)"
if: runner.os == 'Linux'
run: |
cd kie-tools
podman image ls -q --filter reference=${{ env.SERVERLESS_LOGIC_WEB_TOOLS__swfBuilderImageName }} | xargs podman rmi
rm -rf ${{ env.TMPDIR }}/*
pnpm -F serverless-logic-web-tools-swf-builder-image cleanup
cd -
- name: "Push serverless-logic-web-tools-base-builder-image to quay.io (Ubuntu only)"
if: runner.os == 'Linux' && github.event_name != 'pull_request'
uses: redhat-actions/push-to-registry@v2
with:
image: "${{ env.SERVERLESS_LOGIC_WEB_TOOLS__baseBuilderImageName }}"
tags: "${{ env.SERVERLESS_LOGIC_WEB_TOOLS__baseBuilderImageBuildTags }}"
registry: "${{ env.SERVERLESS_LOGIC_WEB_TOOLS__baseBuilderImageRegistry }}/${{ env.SERVERLESS_LOGIC_WEB_TOOLS__baseBuilderImageAccount }}"
username: "${{ env.SERVERLESS_LOGIC_WEB_TOOLS__baseBuilderImageAccount }}"
password: "${{ secrets.QUAY_REGISTRY_PASSWORD }}"
- name: "Clean up serverless-logic-web-tools-base-builder-image (Ubuntu only)"
if: runner.os == 'Linux'
run: |
cd kie-tools
podman image ls -q --filter reference=${{ env.SERVERLESS_LOGIC_WEB_TOOLS__baseBuilderImageName }} | xargs podman rmi
rm -rf ${{ env.TMPDIR }}/*
pnpm -F serverless-logic-web-tools-base-builder-image cleanup
cd -
- name: "Push serverless-logic-web-tools-swf-dev-mode-image to quay.io (Ubuntu only)"
if: runner.os == 'Linux' && github.event_name != 'pull_request'
uses: redhat-actions/push-to-registry@v2
with:
image: "${{ env.SERVERLESS_LOGIC_WEB_TOOLS__swfDevModeImageName }}"
tags: "${{ env.SERVERLESS_LOGIC_WEB_TOOLS__swfDevModeImageBuildTags }}"
registry: "${{ env.SERVERLESS_LOGIC_WEB_TOOLS__swfDevModeImageRegistry }}/${{ env.SERVERLESS_LOGIC_WEB_TOOLS__swfDevModeImageAccount }}"
username: "${{ env.SERVERLESS_LOGIC_WEB_TOOLS__swfDevModeImageAccount }}"
password: "${{ secrets.QUAY_REGISTRY_PASSWORD }}"
- name: "Clean up serverless-logic-web-tools-swf-dev-mode-image (Ubuntu only)"
if: runner.os == 'Linux'
run: |
cd kie-tools
podman image ls -q --filter reference=${{ env.SERVERLESS_LOGIC_WEB_TOOLS__swfDevModeImageName }} | xargs podman rmi
rm -rf ${{ env.TMPDIR }}/*
pnpm -F serverless-logic-web-tools-swf-dev-mode-image cleanup
cd -
- name: "Push dashbuilder-viewer-image to quay.io (Ubuntu only)"
if: runner.os == 'Linux' && github.event_name != 'pull_request'
uses: redhat-actions/push-to-registry@v2
with:
image: "${{ env.DASHBUILDER__viewerImageName }}"
tags: "${{ env.DASHBUILDER__viewerImageBuildTags }}"
registry: "${{ env.DASHBUILDER__viewerImageRegistry }}/${{ env.DASHBUILDER__viewerImageAccount }}"
username: "${{ env.DASHBUILDER__viewerImageAccount }}"
password: "${{ secrets.QUAY_REGISTRY_PASSWORD }}"
- name: "Clean up dashbuilder-viewer-image (Ubuntu only)"
if: runner.os == 'Linux'
run: |
cd kie-tools
podman image ls -q --filter reference=${{ env.DASHBUILDER__viewerImageName }} | xargs podman rmi
rm -rf ${{ env.TMPDIR }}/*
pnpm -F dashbuilder-viewer-image cleanup
cd -
- name: "Prune remaining docker/podman resources"
if: runner.os != 'Windows'
run: |
if command -v docker &> /dev/null; then
docker system prune -af
fi
if command -v podman &> /dev/null; then
podman system prune --all --force
fi
- name: "Checkout kogito-online (Ubuntu only)"
if: runner.os == 'Linux'
uses: actions/checkout@v3
with:
token: ${{ github.event_name != 'pull_request' && secrets.KIE_TOOLS_BOT_TOKEN || secrets.GITHUB_TOKEN }}
path: kogito-online
repository: kiegroup/kogito-online
ref: gh-pages
- name: "Update kogito-online resources (Ubuntu only)"
if: runner.os == 'Linux' && github.event_name != 'pull_request'
run: |
cd kogito-online
rm -rf dev
mkdir -p dev/editors
cp -RL ../kie-tools/packages/stunner-editors/dist/dmn dev/editors/
cp -RL ../kie-tools/packages/stunner-editors/dist/bpmn dev/editors/
cp -RL ../kie-tools/packages/stunner-editors/dist/scesim dev/editors/
cp -r ../kie-tools/packages/online-editor/dist/* dev/
rm -rf dev/gwt-editors
ln -s editors dev/gwt-editors
git config --global user.email "[email protected]"
git config --global user.name "KIE Tools Bot (kiegroup)"
today=$(date -I)
git add . && git commit -m "KIE Tools Daily Dev Build resources - $today" || echo "No changes."
git push origin gh-pages
cd -
- name: "Clean up kogito-online resources (Ubuntu only)"
if: runner.os == 'Linux'
run: |
rm -rf kogito-online
- name: "Checkout serverless-logic-sandbox-deployment (Ubuntu only)"
if: runner.os == 'Linux'
uses: actions/checkout@v3
with:
token: ${{ github.event_name != 'pull_request' && secrets.KIE_TOOLS_BOT_TOKEN || secrets.GITHUB_TOKEN }}
path: serverless-logic-sandbox-deployment
repository: kiegroup/serverless-logic-sandbox-deployment
ref: gh-pages
- name: "Update serverless-logic-sandbox-deployment resources (Ubuntu only)"
if: runner.os == 'Linux' && github.event_name != 'pull_request'
run: |
cd serverless-logic-sandbox-deployment
rm -rf dev
mkdir dev
cp -r ../kie-tools/packages/serverless-logic-web-tools/dist/* dev/
git config --global user.email "[email protected]"
git config --global user.name "KIE Tools Bot (kiegroup)"
today=$(date -I)
git add . && git commit -m "KIE Tools Daily Dev Build resources - $today" || echo "No changes."
git push origin gh-pages
cd -
- name: "Clean up serverless-logic-sandbox-deployment resources (Ubuntu only)"
if: runner.os == 'Linux'
run: |
rm -rf serverless-logic-sandbox-deployment