mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-10 15:30:12 +00:00
adf67ca987
Main lcitool changes: - added Alpine 3.17 and 3.18 targets - dropped Alpine 3.15 and 3.16 Note that we're not actively testing all Alpine targets due to CI quota, so only 3.17 is used as a replacement for 3.15 in this patch. Signed-off-by: Erik Skultety <eskultet@redhat.com> Reviewed-by: Andrea Bolognani <abologna@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
|