[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 32/33] gitlab: don't run CI jobs in forks by default
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH v1 32/33] gitlab: don't run CI jobs in forks by default |
Date: |
Fri, 27 May 2022 16:57:30 +0100 |
User-agent: |
Mutt/2.2.1 (2022-02-19) |
On Fri, May 27, 2022 at 04:36:02PM +0100, Alex Bennée wrote:
> From: Daniel P. Berrangé <berrange@redhat.com>
>
> To preserve CI shared runner credits we don't want to run
> pipelines on every push.
>
> This sets up the config so that pipelines are never created
> for contributors by default. To override this the QEMU_CI
> variable can be set to a non-zero value. If set to 1, the
> pipeline will be created but all jobs will remain manually
> started. The contributor can selectively run jobs that they
> care about. If set to 2, the pipeline will be created and
> all jobs will immediately start.
>
> This behavior can be controlled using push variables
>
> git push -o ci.variable=QEMU_CI=1
>
> To make this more convenient define an alias
>
> git config --local alias.push-ci "push -o ci.variable=QEMU_CI=1"
> git config --local alias.push-ci-now "push -o ci.variable=QEMU_CI=2"
>
> Which lets you run
>
> git push-ci
>
> to create the pipeline, or
>
> git push-ci-now
>
> to create and run the pipeline
>
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> Message-Id: <20220526110705.59952-6-berrange@redhat.com>
> [AJB: fix typo, replicate alias tips in ci.rst]
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Looks good to me.
With 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 :|
- Re: [PATCH v1 11/33] tests/docker: update debian-amd64 with lcitool, (continued)
- [PATCH v1 33/33] docs/devel: clean-up the CI links in the docs, Alex Bennée, 2022/05/27
- [PATCH v1 24/33] configure: enable cross-compilation of s390-ccw, Alex Bennée, 2022/05/27
- [PATCH v1 16/33] configure, meson: move symlinking of ROMs to meson, Alex Bennée, 2022/05/27
- [PATCH v1 28/33] gitlab: introduce a common base job template, Alex Bennée, 2022/05/27
- [PATCH v1 22/33] configure: include more binutils in tests/tcg makefile, Alex Bennée, 2022/05/27
- [PATCH v1 32/33] gitlab: don't run CI jobs in forks by default, Alex Bennée, 2022/05/27
- [PATCH v1 30/33] gitlab: convert static checks to .base_job_template, Alex Bennée, 2022/05/27
- [PATCH v1 31/33] gitlab: convert build/container jobs to .base_job_template, Alex Bennée, 2022/05/27
- [PATCH v1 19/33] configure: add missing cross compiler fallbacks, Alex Bennée, 2022/05/27
- [PATCH v1 21/33] configure: introduce --cross-prefix-*=, Alex Bennée, 2022/05/27