-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathexport-workspaces-as-dynamic.yaml
More file actions
140 lines (117 loc) · 4.19 KB
/
export-workspaces-as-dynamic.yaml
File metadata and controls
140 lines (117 loc) · 4.19 KB
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
name: Export Workspace as Dynamic Plugins Packages
on:
workflow_call:
secrets:
image-registry-password:
description: Password to be used to push to container image registry
required: false
inputs:
image-registry-user:
description: User name to be used to push to container image registry
type: string
required: false
node-version:
description: node-version to execute the export
type: string
required: false
janus-cli-version:
description: Version of the janus-idp/cli package.
type: string
required: false
cli-package:
description: Cli package to be used for the export.
type: string
required: false
upload-project-on-error:
description: Upload the complete project as a workflow artifact in case of error in order to troubleshoot.
required: false
type: boolean
default: false
workspace-path:
description: Relative path of a single workspace on which the export workflow should be applied.
required: false
type: string
default: ''
overlay-branch:
description: Branch of the overlay structure (current branch by default).
type: string
required: false
default: ''
publish-container:
description: Publish a container image for the dynamic plugins
required: true
type: boolean
image-repository-prefix:
description: Repository prefix of the dynamic plugin container images
type: string
required: false
last-publish-commit:
description: Optional commit ID of the last successful publishing of plugin container images
type: string
required: false
workflow_dispatch:
inputs:
node-version:
description: node-version to execute the export
type: string
required: false
default: ''
janus-cli-version:
description: Version of the janus-idp/cli package.
type: string
required: false
default: ''
cli-package:
description: Cli package to be used for the export.
type: string
required: false
default: ''
upload-project-on-error:
description: Upload the complete project as a workflow artifact in case of error in order to troubleshoot.
required: false
type: boolean
default: false
workspace-path:
description: Relative path of a single workspace on which the export workflow should be applied.
required: false
type: string
overlay-branch:
description: Branch of the overlay structure
type: string
required: true
publish-container:
description: Publish a container image for the dynamic plugins
required: false
type: boolean
default: false
image-repository-prefix:
description: Repository prefix of the dynamic plugin container images
type: string
required: false
last-publish-commit:
description: Optional commit ID of the last successful publishing of plugin container images
type: string
required: false
concurrency:
group: ${{ github.workflow_ref }}-${{ github.ref }}
cancel-in-progress: true
jobs:
export:
uses: redhat-developer/rhdh-plugin-export-utils/.github/workflows/export-workspaces-as-dynamic.yaml@main
with:
node-version: ${{ inputs.node-version }}
janus-cli-version: ${{ inputs.janus-cli-version }}
cli-package: ${{ inputs.cli-package }}
upload-project-on-error: ${{ inputs.upload-project-on-error }}
overlay-branch: ${{ inputs.overlay-branch }}
workspace-path: ${{ inputs.workspace-path }}
publish-container: ${{ inputs.publish-container }}
image-repository-prefix: ${{ inputs.image-repository-prefix }}
image-registry-user: ${{ inputs.image-registry-user || github.actor }}
secrets:
image-registry-password: ${{ secrets.image-registry-password || secrets.GITHUB_TOKEN }}
permissions:
contents: write
attestations: write
packages: write
id-token: write