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
I'm just figuring out that yaml has these definitions called "anchors" and then "aliases" that can be used together to define a function (or set of configuration values) and then reference / reuse across a build workflow! For example, I might set a default:
version: 2
jobs:
setup:
<<: *defaults steps: - run: name: Test if the user has defined the repository name command: apk add --no-cache pigz python3
using this for any repeated code would be ideal to clean / simplify the config files! I think we would also want a way to add a variable input to a function, I'm still looking into / testing if I can do this.
The text was updated successfully, but these errors were encountered:
I'm just figuring out that yaml has these definitions called "anchors" and then "aliases" that can be used together to define a function (or set of configuration values) and then reference / reuse across a build workflow! For example, I might set a default:
and then reference it:
using this for any repeated code would be ideal to clean / simplify the config files! I think we would also want a way to add a variable input to a function, I'm still looking into / testing if I can do this.
The text was updated successfully, but these errors were encountered: