Replies: 1 comment
-
But you can just use 'deps', 'run', and lets say, 'includes' with a bunch of simple tasks. Then you just let Task take care of figuring it out (reality check, you will spend some time figuring it out too). Think about the problem as A depends on B depends on C ... rather than Before (A) and After (C) ... and you get there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been trying to find a way to reuse boilerplate base yaml definitions to build on more complicated tasks.
Some good examples of how this could look like are the following:
I will use the gitlab functionality as an example for implementing the base and extended functionality of installing packages only if the requested package version has changed.
Gitlab has two additional sections that help a lot with extending,
before_script
andafter_script
. Ifafter_script
was available then it would make it easier to not have to remember to add the cache version directive every time.Have you run into this use case? How do you implement it usually? Would the capability to extend a base definition be of benefit here?
p.s.
Some more complicated examples would be uses of kustomize in kubernetes manifests. While not very simple in nature, there should be relevant go code available for implementing a strategic merge.
Beta Was this translation helpful? Give feedback.
All reactions