In particular, I want to compute the value as with:
variables:
“D”: $(date --iso-8601)
But I want the date to be computed and locked at the time of assignment rather than expanded and recomputed by each and every shell that references it.
Is there a way to do this within my .gitlab-ci.yml? Or am I just stuck with creating a “helper” stage that writes the value to a file, making that file an artifact, and then reading it in every time I want to reference the value? Seems like a lot of work (and time) for a fairly simple concept.