Create latest tag for windows helper image
The following discussion from !1178 (merged) should be addressed:
-
@steveazz started a discussion: (+3 comments) How should
IS_LATEST
be populated, I think we have 2 options in this case:- We port the declartion from
Makefile
- We only set this variable when we create a tag what is not a RC or patch inside of
.gitlab-ci.yml
- We port the declartion from
Overview
Currently, when tagging the last release for example 11.9.0
we tag that helper image for that specific commit as gitlab/gitlab-runner-helper:x86_64-latest
. There are not real benefits apart from using it for tests for the runner itself, since we don't have to use a specific version we would just use the latest tag making sure the tests are using the most up to date version. For windows tests we could just use a specific version a.
Proposal
At the prebuild
stage, in one of the jobs, we may use Makefile to create a specific file if IS_LATEST
is true, and pass this file as an artifact (like we're doing for .gopath/ok
job, so the testing make targets are not re-creating the .gopath
). Having such file, this script could just look for it's existence. In fact, we could next make it consistent in the Linux building script.