mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
539e851c5d
Two notable changes: * the macOS platform has switched from x86_64 to aarch64 * if a new pipeline starts before a previous one finishes, jobs marked 'interruptible: true' will be auto-cancelled Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
84 lines
2.4 KiB
YAML
84 lines
2.4 KiB
YAML
# THIS FILE WAS AUTO-GENERATED
|
|
#
|
|
# $ lcitool manifest ci/manifest.yml
|
|
#
|
|
# https://gitlab.com/libvirt/libvirt-ci
|
|
|
|
|
|
# Variables that can be set to control the behaviour of
|
|
# pipelines that are run
|
|
#
|
|
# - RUN_PIPELINE - force creation of a CI pipeline when
|
|
# pushing to a branch in a forked repository. Official
|
|
# CI pipelines are triggered when merge requests are
|
|
# created/updated. Setting this variable to a non-empty
|
|
# value allows CI testing prior to opening a merge request.
|
|
#
|
|
# - RUN_CONTAINER_BUILDS - CI pipelines in upstream only
|
|
# publish containers if CI file changes are detected.
|
|
# Setting this variable to a non-empty value will force
|
|
# re-publishing, even when no file changes are detected.
|
|
# Typically to use from a scheduled job once a month.
|
|
#
|
|
# - RUN_UPSTREAM_NAMESPACE - the upstream namespace is
|
|
# configured to default to 'libvirt'. When testing
|
|
# changes to CI it might be useful to use a different
|
|
# upstream. Setting this variable will override the
|
|
# namespace considered to be upstream.
|
|
#
|
|
# These can be set as git push options
|
|
#
|
|
# $ git push -o ci.variable=RUN_PIPELINE=1
|
|
#
|
|
# Aliases can be set for common usage
|
|
#
|
|
# $ git config --local alias.push-ci "push -o ci.variable=RUN_PIPELINE=1"
|
|
#
|
|
# Allowing the less verbose invocation
|
|
#
|
|
# $ git push-ci
|
|
#
|
|
# Pipeline variables can also be set in the repository
|
|
# pipeline config globally, or set against scheduled pipelines
|
|
|
|
|
|
variables:
|
|
RUN_UPSTREAM_NAMESPACE: libvirt
|
|
|
|
|
|
workflow:
|
|
rules:
|
|
# upstream+forks: Avoid duplicate pipelines on pushes, if a MR is open
|
|
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_OPEN_MERGE_REQUESTS'
|
|
when: never
|
|
|
|
# upstream+forks: Avoid pipelines on tag pushes
|
|
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_TAG'
|
|
when: never
|
|
|
|
# upstream+forks: Allow pipelines in scenarios we've figured out job rules
|
|
- if: '$CI_PIPELINE_SOURCE =~ /^(push|merge_request_event|api|web|schedule)$/'
|
|
when: always
|
|
|
|
# upstream+forks: Avoid all other pipelines
|
|
- when: never
|
|
|
|
|
|
debug:
|
|
image: docker.io/library/alpine:3
|
|
stage: sanity_checks
|
|
interruptible: true
|
|
needs: []
|
|
script:
|
|
- printenv | sort
|
|
rules:
|
|
- if: '$RUN_DEBUG'
|
|
when: always
|
|
|
|
include:
|
|
- local: '/ci/gitlab/container-templates.yml'
|
|
- local: '/ci/gitlab/build-templates.yml'
|
|
- local: '/ci/gitlab/sanity-checks.yml'
|
|
- local: '/ci/gitlab/containers.yml'
|
|
- local: '/ci/gitlab/builds.yml'
|