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

Add support for handlebars in build-contexts #1275

Open
staizen-stephen opened this issue Dec 6, 2024 · 0 comments · May be fixed by #1283
Open

Add support for handlebars in build-contexts #1275

staizen-stephen opened this issue Dec 6, 2024 · 0 comments · May be fixed by #1283
Labels
kind/enhancement New feature or request

Comments

@staizen-stephen
Copy link

Description

As of now, you can use {{defaultContext}} in a context expression. However, the same capability does not exist for build-contexts as the HandleBars invocation is absent.

As a workaround, I am embedding the Git reference directly, from this code: https://github.com/docker/actions-toolkit/blob/0a8b89fa07de1dd2de1da2590b6ce3f0378cca9d/src/context.ts#L54-L56

In my case, I am referencing shared code within a repo that contains many separate compilation and deployment targets that are not built into a single container.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants