mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-01-18 06:03:43 +03:00
82dbca46b6
This updates the distros: * Add Alpine 3.18, 3.19, Edge, CentOS Stream 9, Fedora 39, 40, Ubuntu 24.04, AlmaLinux 8, 9, Debian 11, 12 * Remove CentOS Stream 8, Fedora 37, 38, Ubuntu 20.04, Debian 10, Fedora 35, 36 * Rename OpenSUSE 15.3 to 15 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
46 lines
1.5 KiB
YAML
46 lines
1.5 KiB
YAML
# THIS FILE WAS AUTO-GENERATED
|
|
#
|
|
# $ lcitool manifest ci/manifest.yml
|
|
#
|
|
# https://gitlab.com/libvirt/libvirt-ci
|
|
|
|
|
|
# We want to publish containers with tag 'latest':
|
|
#
|
|
# - In upstream, for push to default branch with CI changes.
|
|
# - In upstream, on request, for scheduled/manual pipelines
|
|
# against default branch
|
|
#
|
|
# Note: never publish from merge requests since they have non-committed code
|
|
#
|
|
.container_job:
|
|
image: docker:latest
|
|
stage: containers
|
|
interruptible: false
|
|
needs: []
|
|
services:
|
|
- docker:dind
|
|
before_script:
|
|
- export TAG="$CI_REGISTRY_IMAGE/ci-$NAME:latest"
|
|
- docker info
|
|
- docker login "$CI_REGISTRY" -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD"
|
|
script:
|
|
- docker build --tag "$TAG" -f "ci/containers/$NAME.Dockerfile" ci/containers ;
|
|
- docker push "$TAG"
|
|
after_script:
|
|
- docker logout
|
|
rules:
|
|
# upstream: publish containers if there were CI changes on the default branch
|
|
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
|
when: on_success
|
|
changes:
|
|
- ci/gitlab/container-templates.yml
|
|
- ci/containers/$NAME.Dockerfile
|
|
|
|
# upstream: allow force re-publishing containers on default branch for web/api/scheduled pipelines
|
|
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH && $RUN_CONTAINER_BUILDS == "1"'
|
|
when: on_success
|
|
|
|
# upstream+forks: that's all folks
|
|
- when: never
|