Re: [igt-dev] [PATCH v3 4/6] gitlab-ci: use images tagged with git ref instead of latest

Arkadiusz Hiler
2019-08-26T13:44:26Z

On Mon, Aug 26, 2019 at 04:12:46PM +0300, Oleg Vasilev wrote:
> Since different images can be present at the same time, it is better to
> always use the one built for this particular git reference.
>
> Signed-off-by: Oleg Vasilev <oleg.vasilev@intel.com>
> ---
> .gitlab-ci.yml | 22 +++++++++++-----------
> 1 file changed, 11 insertions(+), 11 deletions(-)
>
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index 3433ca08..f994db77 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -1,4 +1,4 @@
> -image: $CI_REGISTRY/$CI_PROJECT_PATH/build-fedora:latest
> +image: $CI_REGISTRY/$CI_PROJECT_PATH/build-fedora:$CI_COMMIT_REF_NAME

We are not tagging with the $CI_COMMIT_REF_NAME name at this time, and I
think it would be better to use SHA1 at this time - more on that in the
review of the next patch.