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
Bake quickly becomes a preferred solution for running CI/CD and local tasks. However, sometimes, we need to run a pre-task, like fetching the current Git commit reference or setting up custom environment variables. Currently, Bake doesn’t offer a built-in way to handle these tasks, making it difficult to gather this information on the fly. As a result, users have to rely on external tools or scripts to complete setup tasks.
Proposal
The goal of this proposal is to add a built-in function to run shell commands and scripts. This feature would let users handle tasks like setting up variables/gathering info without needing extra tools like Makefile and keeping workflows in one place.
To address this, I propose adding a new built-in function to the hclparser stdlib. This function would be similar to other built-ins in stdlib.go and would leverage "github.com/mvdan/sh" to execute shell commands.
As for today, we are using a Taskfile wrapper in order to achieve the variables settings.
This feature will render a lot of the external tools redundant for us and will improve our codebase.
Description
Issue
Bake quickly becomes a preferred solution for running CI/CD and local tasks. However, sometimes, we need to run a pre-task, like fetching the current Git commit reference or setting up custom environment variables. Currently, Bake doesn’t offer a built-in way to handle these tasks, making it difficult to gather this information on the fly. As a result, users have to rely on external tools or scripts to complete setup tasks.
Proposal
The goal of this proposal is to add a built-in function to run shell commands and scripts. This feature would let users handle tasks like setting up variables/gathering info without needing extra tools like Makefile and keeping workflows in one place.
To address this, I propose adding a new built-in function to the hclparser stdlib. This function would be similar to other built-ins in stdlib.go and would leverage "github.com/mvdan/sh" to execute shell commands.
The text was updated successfully, but these errors were encountered: