97d2061226
This is motivated by OpenDev's desire to drop the old Bullseye container images as well as container images for older versions of python. We bump testing to python3.11 on the high end of the range and convert the container image to python3.11 + Bookworm. Python 2.7 testing is removed because tox + virtualenv can't actually create python2.7 virtualenvs any longer. There are workarounds but dropping the tests is simpler. Python 3.5 testing is replaced with 3.6 testing beacuse the version of easy_install on ubuntu xenial does not understand TLS + SNI. A while back pypi.org dropped non SNI connection support which means we can't install PBR for to run the setup.py for the projcet. There are workarounds but 3.5 is old enough taht we should be able to move on. Change-Id: I2f2a2d0cf71c69d7babd6df9bfdb41a759e9c0ee
97 lines
3.2 KiB
YAML
97 lines
3.2 KiB
YAML
- secret:
|
|
name: gear-opendev-dockerhub
|
|
data:
|
|
username: opendevzuul
|
|
password: !encrypted/pkcs1-oaep
|
|
- bROAu0oGBv+2l67dlC94t+s33rmdogBhWzyk7d/Zj7bSHZtfap2f1u+0RWogAKwjRtxtR
|
|
C6mqoVjKdWd+qBcnek0U/6Czgnhp5og3d9rsN+3SeQ9aOTTjoYkiqsg+c7N0rMh1AGndG
|
|
Qn3LU8i0EDGfzn5C+1KTcRHJ5brSrZzB+GsiXZxm8eLlupuFCep/yrUcnsH6f73sKGHQI
|
|
C9OcENQCelPLEdEtLb1eyx0hL1+o1ar0FdRCDrvZwih1SE/UUa18Zi7QCMEmkwZ8fil7B
|
|
zVtcBSTxTqIY49bgjerUykq0YKH1gTZrVC+UPFPjPZfNS39fxgcdqUMgbUTuWCoIrI0Jh
|
|
2pKg+KZ/3L8zqcmqOZFQOFvVi7zOtXdKZI3rmWRAzM/BgVXFeBsQZkGZ75TzE8Xm70uA4
|
|
WYdIva8kjBLrTz1/uRijZqNSrwM2fGO3VI+1SXUQI6FWJfZ+uSWzCDk9JswLPFzoXa7+J
|
|
ASDaygdGvU6q+pkxOQ/v9lgTnwZCdEAoCRdSZBKz/y3OosKAYIRIismLRJ9Kfkqxl8IEi
|
|
/0U+rSsWpWb5jufUcwAmL2Rj6YVcgUl3qSq2TzP3R+DPPda6Et4NZQ3RLpWP8if4VuNq7
|
|
gJ2yQTSLJLOG6nhDMRJoW3GLjUMWUw3sbvFE1VzcIggIs4mfxVp21Ps/6hRoAI=
|
|
|
|
- job:
|
|
name: gear-build-opendev-image
|
|
parent: opendev-build-docker-image
|
|
description: Build OpenDev Docker images for gear
|
|
requires:
|
|
- python-base-3.11-bookworm-container-image
|
|
- python-builder-3.11-bookworm-container-image
|
|
provides: gear-container-image
|
|
vars: &gear_opendev_image_vars
|
|
zuul_work_dir: src/opendev.org/opendev/gear
|
|
docker_images:
|
|
- context: .
|
|
repository: opendevorg/geard
|
|
target: geard
|
|
|
|
- job:
|
|
name: gear-upload-opendev-image
|
|
parent: opendev-upload-docker-image
|
|
description: Build OpenDev gear Docker images and upload to Docker Hub.
|
|
requires:
|
|
- python-base-3.11-bookworm-container-image
|
|
- python-builder-3.11-bookworm-container-image
|
|
provides: gear-container-image
|
|
vars: *gear_opendev_image_vars
|
|
secrets:
|
|
- name: docker_credentials
|
|
secret: gear-opendev-dockerhub
|
|
pass-to-parent: true
|
|
|
|
- job:
|
|
name: gear-promote-opendev-image
|
|
parent: opendev-promote-docker-image
|
|
description: Promote previously uploaded gear Docker images.
|
|
vars: *gear_opendev_image_vars
|
|
secrets:
|
|
- name: docker_credentials
|
|
secret: gear-opendev-dockerhub
|
|
pass-to-parent: true
|
|
|
|
- project:
|
|
vars:
|
|
release_python: python3
|
|
templates:
|
|
- publish-opendev-tox-docs
|
|
check:
|
|
jobs:
|
|
- tox-linters
|
|
- tox-py36:
|
|
nodeset: ubuntu-bionic
|
|
- tox-py311:
|
|
nodeset: ubuntu-jammy
|
|
- build-python-release:
|
|
nodeset: ubuntu-jammy
|
|
- gear-build-opendev-image
|
|
gate:
|
|
jobs:
|
|
- tox-linters
|
|
- tox-py36:
|
|
nodeset: ubuntu-bionic
|
|
- tox-py311:
|
|
nodeset: ubuntu-jammy
|
|
- build-python-release:
|
|
nodeset: ubuntu-jammy
|
|
- gear-upload-opendev-image
|
|
promote:
|
|
jobs:
|
|
- opendev-promote-python
|
|
- gear-promote-opendev-image
|
|
release:
|
|
jobs:
|
|
- opendev-release-python:
|
|
nodeset: ubuntu-jammy
|
|
- upload-docker-image:
|
|
secrets:
|
|
name: docker_credentials
|
|
secret: gear-opendev-dockerhub
|
|
pass-to-parent: true
|
|
vars:
|
|
<<: *gear_opendev_image_vars
|
|
upload_docker_image_promote: false
|