Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom workflow snippets #29

Open
alvarosanchez opened this issue Jul 21, 2020 · 0 comments
Open

Allow custom workflow snippets #29

alvarosanchez opened this issue Jul 21, 2020 · 0 comments

Comments

@alvarosanchez
Copy link
Member

There are some repositories, like micronaut-oracle-cloud, that for CI need some custom secrets to be passed as environment variables. Our current setup doesn't allow this, and they either take the common workflow file (which won't work) or opt-out for that file completely.

One solution could be to allow workflow snippets, so that the sync process would compose the final workflow file inserting those snippets at certain places.

The repositories interested in this would have workflow snippets .github/${workflow}-setup.yml and .github/${workflow}-cleanup.yml, eg:

  • .github/gradle-setup.yml
  • .github/release-cleanup.yml
  • etc.

The sync script would inject setup snippets after checkout, and cleanup snippets at the end.

In the example of micronaut-oracle-cloud, the snippet would export the secrets as environment variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant