-
Notifications
You must be signed in to change notification settings - Fork 580
71 lines (68 loc) · 2.43 KB
/
carvel-worker.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
name: Carvel Worker
on:
workflow_dispatch:
inputs:
build-zoo-handler:
description: 'Build Zoo Handler Payload'
required: true
jobs:
prepare:
name: Prepare
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# zoo extract and ensure
- name: Extract Zoo Context Properties
uses: jvalkeal/build-zoo-handler@v0.0.4
with:
dispatch-handler-extract-context-properties: true
ensure-env: BUILD_ZOO_HANDLER_spring_cloud_dataflow_version
outputs:
dataflow-version: ${{ env.BUILD_ZOO_HANDLER_spring_cloud_dataflow_version }}
skipper-version: ${{ env.BUILD_ZOO_HANDLER_spring_cloud_dataflow_version }}
server-version: ${{ env.BUILD_ZOO_HANDLER_spring_cloud_dataflow_version }}
ctr-version: ${{ env.BUILD_ZOO_HANDLER_spring_cloud_dataflow_version }}
publish:
name: Publish
needs:
- prepare
uses: ./.github/workflows/common-carvel.yml
with:
package-name: 'scdf'
package-version: ${{ needs.prepare.outputs.server-version }}
package-bundle: 'springcloud/scdf-oss-package'
repository-bundle: 'springcloud/scdf-oss-repo'
dataflow-version: ${{ needs.prepare.outputs.dataflow-version }}
server-version: ${{ needs.prepare.outputs.server-version }}
ctr-version: ${{ needs.prepare.outputs.dataflow-version }}
skipper-version: ${{ needs.prepare.outputs.skipper-version }}
server-repository: 'springcloud/spring-cloud-dataflow-server'
skipper-repository: 'springcloud/spring-cloud-skipper-server'
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
finalize:
name: Finalize
runs-on: ubuntu-latest
needs:
- publish
steps:
# zoo success
- name: Notify Build Success Zoo Handler Controller
uses: jvalkeal/build-zoo-handler@v0.0.4
with:
dispatch-handler-token: ${{ secrets.SCDF_ACCESS_TOKEN }}
dispatch-handler-client-payload-data: >
{
"event": "carvel-succeed"
}
# zoo failure
- name: Notify Build Failure Zoo Handler Controller
if: ${{ failure() }}
uses: jvalkeal/build-zoo-handler@v0.0.4
with:
dispatch-handler-token: ${{ secrets.SCDF_ACCESS_TOKEN }}
dispatch-handler-client-payload-data: >
{
"event": "carvel-failed"
}