[libvirt PATCH 3/5] ci: Use GitLab container registry

Daniel P. Berrangé berrange at redhat.com
Tue Jun 2 12:52:37 UTC 2020


On Tue, Jun 02, 2020 at 02:45:30PM +0200, Andrea Bolognani wrote:
> On Tue, 2020-06-02 at 12:23 +0100, Daniel P. Berrangé wrote:
> > On Tue, Jun 02, 2020 at 01:10:08PM +0200, Andrea Bolognani wrote:
> > > On Tue, 2020-06-02 at 11:33 +0100, Daniel P. Berrangé wrote:
> > > > I don't think we should be building container images that we're not going
> > > > to be using in any of the jobs, as it can only ever slow down the build
> > > > overall.
> > > 
> > > These same containers are also available for use outside of CI, eg.
> > > with 'make ci-build', so I think we should keep building them.
> > 
> > That only needs them built on the master branch of the main repo
> > though, not every branch in every fork
> 
> Fair enough. So what you're suggesting is something like
> 
>   .container_optional_job_template: &container_optional_job_definition
>     <<: *container_job_definition
>     allow_failure: true
>     except:
>       variables:
>         - $CI_PROJECT_NAMESPACE != libvirt
>     only:
>       - master
> 
> correct?

Perhaps just matching what we do with extra builds:

  only:
    - master
    - /^ci-full-.*$/

so users can still get the full set of builds in their fork if they push
to certain branch.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list