You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add reusable GitHub Action to generate ImageCatalogs (#323)
Introduces a composite action that wraps `catalogs_generator.py` to
generate CloudNativePG ImageCatalog YAMLs from a container registry.
Supports multiple image types, distributions, and custom family prefixes.
Generates a `kustomization.yaml` for easy deployment of all catalogs.
Related to cloudnative-pg/postgis-containers#100Closes#324
Signed-off-by: Niccolò Fei <[email protected]>
Signed-off-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Marco Nenciarini <[email protected]>
Co-authored-by: Gabriele Bartolini <[email protected]>
Co-authored-by: Marco Nenciarini <[email protected]>
help=f"The registry to interrogate (default: {default_registry})",
204
+
)
149
205
parser.add_argument(
150
206
"--output-dir", default=".", help="Directory to save the YAML files"
151
207
)
208
+
parser.add_argument(
209
+
"--regex",
210
+
default=default_regex,
211
+
help=f"The regular expression used to retrieve container image. The first capturing group must be the PostgreSQL major version. (default: {default_regex})",
212
+
)
213
+
parser.add_argument(
214
+
"--image-types",
215
+
nargs="+",
216
+
default=supported_img_types,
217
+
help=f"Image types to retrieve (default: {supported_img_types})",
218
+
)
219
+
parser.add_argument(
220
+
"--distributions",
221
+
nargs="+",
222
+
default=supported_os_names,
223
+
help=f"Distributions to retrieve (default: {supported_os_names})",
224
+
)
225
+
parser.add_argument(
226
+
"--family",
227
+
default=default_family,
228
+
help=f"The family name to assign to the catalogs (default: {default_family})",
0 commit comments