Variable expansion for artifact expiration `expire_in`

Description

I'm running a CI pipeline on gitlab.

I include an existing yaml ci script from elsewhere (another project).

In the included ci yaml script, artifacts are created, and an expiration time is supplied using expire_in.

I would like to be able to override the specified expiration time.

That way, the include mechanism becomes even more useful and gitlab CI scripts become DRYer.

Proposal

As far as I understand from the docs, gitlab runner currently does variable expansion for artifact names (even though I'm not able to confirm this / find it in the code, but then again I'm not familiar with the code base).

I propose to extend this functionality to the expiration time.

Implementation details

  • Placeholder
Edited by Darren Eastman