Refactor pre-processor syntax #2473
Unanswered
anbraten
asked this question in
Request a Feature
Replies: 4 comments 17 replies
-
We should still provide all the features supported by https://github.com/drone/envsubst (https://github.com/drone/envsubst#supported-functions), this shouldn't be hard to implement using something like Go templates though. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Related: #1258 |
Beta Was this translation helpful? Give feedback.
0 replies
-
As we can not drop the syntax directly we might need a roadmap like this:
|
Beta Was this translation helpful? Give feedback.
17 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We currently use bash var syntax for pre-processing in our yaml config. So a var would be written by using
${CI_REPO_DEFAULT_BRANCH}
. Its using https://github.com/drone/envsubst for this. This sometimes conflicts with users trying to write variables with normal bash syntax. To escape this the user is needed to write:$${CI_REPO_DEFAULT_BRANCH}
.Instead maybe changing to some other syntax like go-template / handlebar syntax with
{{ CI_REPO_DEFAULT_BRANCH }}
for the pre-processor could avoid confusion.Beta Was this translation helpful? Give feedback.
All reactions