aws / codecatalyst-blueprints

Apache License 2.0
48 stars 18 forks source link

Enhance launch-blueprint to allow importing github action workflows into CodeCatalyst Workflows #572

Open Lock128 opened 3 weeks ago

Lock128 commented 3 weeks ago

I'd like to be able to use the "launch-blueprint" or a similar blueprint to import existing workflows into CodeCatalyst and this means translating the Github Actions structure into the CodeCatalyst Workflows structure automatically.

At the moment only .codecatalyst workflows are imported, with this functionality we would convert existing github actions workflows to the CodeCatalyst workflow syntax and that would then allow us to build the newly imported project directly in CodeCatalyst

michaellandi commented 2 weeks ago

@Lock128 we wrap existing GitHub actions in the source repository with a CodeCatalyst workflow using this mechanism: https://docs.aws.amazon.com/codecatalyst/latest/userguide/integrations-github-actions.html. Is this what you had in mind?

Lock128 commented 2 weeks ago

Kind of - yes - just generate that .codecatalyst/ aswell if you import from github :-)

That way we can directly also use the CodeCatalyst workflows after the import without any manual steps.

michaellandi commented 2 weeks ago

That makes sense. Integrating existing GitHub actions would be a more straightforward approach than trying to translate between the two. We should be able to build this functionality into the existing launch blueprint.