On Wed, Feb 26, 2020 at 08:03:52 -0800, Константин Ильченко wrote:
> On *build* stage I want to read a ./version file in some kind of a shared
> variable, like $VERSION, and use it instead of $GO_PIPELINE_LABEL on every
> other stage. Is this possible without creating and fetching artifacts?
I assume you're looking for something more than: "source ./version; docker build --rm -t local/dummy:$GO_PIPELINE_LABEL ." ?
Typically, the only way to share information between stages is to use artifacts. External artifact plugins allow environment variables to be set, which affect other tasks within a job, but a standard artifact is probably the most straightforward way.
Cheers,
Aravind