11name : Release Cloud
22
33on :
4+ workflow_call :
5+ inputs :
6+ tag :
7+ description : " Tag for manual release"
8+ required : false
9+ default : " "
10+ type : string
11+ build_offline_tar_only :
12+ description : " Build offline tar only"
13+ required : false
14+ default : false
15+ type : boolean
416 workflow_dispatch :
517 inputs :
618 tag :
@@ -27,77 +39,33 @@ permissions:
2739jobs :
2840 release-controllers :
2941 if : ${{ inputs.build_offline_tar_only == false }}
30- runs-on : ubuntu-24.04
31- steps :
32- - name : Trigger Cloud Controller Release Workflow(only when tagged)
33- uses : actions/github-script@v6
34- with :
35- script : |
36- github.rest.actions.createWorkflowDispatch({
37- owner: context.repo.owner,
38- repo: context.repo.repo,
39- workflow_id: 'controllers.yml',
40- ref: "refs/tags/${{ github.ref_name }}",
41- inputs: {
42- push_image_tag: "${{ github.ref_name }}",
43- push_image: true
44- }
45- })
42+ uses : ./.github/workflows/controllers.yml
43+ with :
44+ push_image : true
45+ push_image_tag : ${{ inputs.tag }}
46+ secrets : inherit
4647 release-frontends :
4748 if : ${{ inputs.build_offline_tar_only == false }}
48- runs-on : ubuntu-24.04
49- steps :
50- - name : Trigger Cloud Frontends Release Workflow(only when tagged)
51- uses : actions/github-script@v6
52- with :
53- script : |
54- github.rest.actions.createWorkflowDispatch({
55- owner: context.repo.owner,
56- repo: context.repo.repo,
57- workflow_id: 'frontends.yml',
58- ref: "refs/tags/${{ github.ref_name }}",
59- inputs: {
60- push_image_tag: "${{ github.ref_name }}",
61- push_image: true
62- }
63- })
64-
49+ uses : ./.github/workflows/frontends.yml
50+ with :
51+ push_image : true
52+ push_image_tag : ${{ inputs.tag }}
53+ secrets : inherit
6554 release-service :
6655 if : ${{ inputs.build_offline_tar_only == false }}
67- runs-on : ubuntu-24.04
68- steps :
69- - name : Trigger Cloud Services Release Workflow(only when tagged)
70- uses : actions/github-script@v6
71- with :
72- script : |
73- github.rest.actions.createWorkflowDispatch({
74- owner: context.repo.owner,
75- repo: context.repo.repo,
76- workflow_id: 'services.yml',
77- ref: "refs/tags/${{ github.ref_name }}",
78- inputs: {
79- push_image_tag: "${{ github.ref_name }}",
80- push_image: true
81- }
82- })
56+ uses : ./.github/workflows/services.yml
57+ with :
58+ push_image : true
59+ push_image_tag : ${{ inputs.tag }}
60+ secrets : inherit
61+
8362 release-webhook :
8463 if : ${{ inputs.build_offline_tar_only == false }}
85- runs-on : ubuntu-24.04
86- steps :
87- - name : Trigger Cloud Services Release Workflow(only when tagged)
88- uses : actions/github-script@v6
89- with :
90- script : |
91- github.rest.actions.createWorkflowDispatch({
92- owner: context.repo.owner,
93- repo: context.repo.repo,
94- workflow_id: 'webhooks.yml',
95- ref: "refs/tags/${{ github.ref_name }}",
96- inputs: {
97- push_image_tag: "${{ github.ref_name }}",
98- push_image: true
99- }
100- })
64+ uses : ./.github/workflows/webhooks.yml
65+ with :
66+ push_image : true
67+ push_image_tag : ${{ inputs.tag }}
68+ secrets : inherit
10169 release-cloud :
10270 if : ${{ inputs.build_offline_tar_only == false }}
10371 needs :
0 commit comments