crushten / github_workflow_repo

Central repo for all actions, workflows, templates, labels, etc.
MIT License
0 stars 0 forks source link

Need to fix nested workflows #5

Closed crushten closed 1 year ago

crushten commented 1 year ago

Made go-setup and the checkout separate workflows so that they can be called in other workflows easier.

Need to either cache or pass the jobs to the other jobs though not sure what is needed with this.

crushten commented 1 year ago

https://docs.github.com/en/actions/using-workflows/reusing-workflows

https://docs.github.com/en/actions/using-jobs/using-jobs-in-a-workflow#defining-prerequisite-jobs

crushten commented 1 year ago

https://github.blog/changelog/2021-08-25-github-actions-reduce-duplication-with-action-composition/ this might also help

https://docs.github.com/en/actions/creating-actions/creating-a-composite-action

crushten commented 1 year ago

could pass artifacts

crushten commented 1 year ago

hmm the composite actions are literally creating your own github actions which is sigh

crushten commented 1 year ago

https://stackoverflow.com/questions/71046096/reusable-workflows-with-local-actions

not sure that we can get away from checkout being in every file sadly

crushten commented 1 year ago

https://wallis.dev/blog/composite-github-actions

https://alejandrocelaya.blog/2022/08/19/how-to-reduce-duplication-in-your-github-actions-workflows/

crushten commented 1 year ago

So this seems to be working now. Can probably try the same strategy with checkout.

Then will have to migrate docker setup and whatever else is in terraform.