qemu-e2k/.gitlab-ci.d
Daniel P. Berrangé 28357dc525 gitlab: don't run CI jobs in forks by default
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>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220527153603.887929-33-alex.bennee@linaro.org>
2022-06-01 18:54:59 +01:00
..
cirrus tests: Drop perl-Test-Harness from the CI containers / VMs 2022-04-20 08:54:16 +02:00
custom-runners Remove Ubuntu 18.04 container support from the repository 2022-05-18 08:54:22 +02:00
edk2 edk2/docker: use ubuntu 18.04 2022-03-15 09:32:22 +01:00
opensbi gitlab-ci.yml: Add jobs to build OpenSBI firmware binaries 2020-03-16 17:03:50 -07:00
base.yml gitlab: don't run CI jobs in forks by default 2022-06-01 18:54:59 +01:00
buildtest-template.yml gitlab: convert build/container jobs to .base_job_template 2022-06-01 15:47:43 +01:00
buildtest.yml gitlab: convert build/container jobs to .base_job_template 2022-06-01 15:47:43 +01:00
check-dco.py gitlab: add a CI job to validate the DCO sign off 2020-10-13 12:48:17 +02:00
check-patch.py .gitlab-ci.d/check-patch: tweak output for CI logs 2020-11-16 11:08:40 +00:00
cirrus.yml gitlab: convert Cirrus jobs to .base_job_template 2022-06-01 15:47:43 +01:00
container-core.yml gitlab: Extract core container jobs to container-core.yml 2021-05-27 16:39:23 +02:00
container-cross.yml gitlab: convert build/container jobs to .base_job_template 2022-06-01 15:47:43 +01:00
container-template.yml gitlab: convert build/container jobs to .base_job_template 2022-06-01 15:47:43 +01:00
containers.yml tests/docker: update debian-amd64 with lcitool 2022-06-01 15:47:23 +01:00
crossbuild-template.yml gitlab: convert build/container jobs to .base_job_template 2022-06-01 15:47:43 +01:00
crossbuilds.yml .gitlab-ci.d/crossbuilds: Fix the dependency of the cross-i386-tci job 2022-06-01 10:21:49 +01:00
custom-runners.yml gitlab: include new aarch32 job in custom-runners 2022-03-23 10:38:09 +00:00
edk2.yml roms/edk2: Only initialize required submodules 2021-10-20 16:26:19 -07:00
opensbi.yml roms/opensbi: Remove ELF images 2022-01-21 15:52:57 +10:00
qemu-project.yml gitlab: introduce a common base job template 2022-06-01 15:47:43 +01:00
stages.yml gitlab: Extract build stages to stages.yml 2021-05-27 16:39:23 +02:00
static_checks.yml gitlab: convert static checks to .base_job_template 2022-06-01 15:47:43 +01:00
windows.yml gitlab: convert build/container jobs to .base_job_template 2022-06-01 15:47:43 +01:00