grafyaml/.zuul.yaml
Clark Boylan ddd1845d00 Update Docker images to python 3.10
This updates the grafyaml docker images to python 3.10. We do this
because 3.10 has been shown to be quicker than 3.8. Also, 3.11 is coming
up soon and moving off of 3.8 will allow us to remove those images
before adding 3.11 which keeps to image build count to a more reasonable
number.

We update the voluptuous version to add python 3.10 support. In
particular collections.Mapping moved to collections.abc.Mapping.

Change-Id: I1514f5e1992cfe5dcdaa06133f5da7379599e57e
2022-10-14 16:36:05 -07:00

92 lines
3.0 KiB
YAML

- secret:
name: grafyaml-dockerhub
data:
username: opendevzuul
password: !encrypted/pkcs1-oaep
- bbW9hdHj1GzhXJky9VkO/FKqiwWJDvaJGn+z/rB/i4ssGu8keRiFCEXHBzzioDe9OWlux
aFNz1T3x7cUlWMEQ0ZDvD7GeQ9dRSo3lWctoS0P4iMClmZKjMDI+TSuLdVg2GlH6CtMiH
b0Flw5j4BsP2VtbN71KOs+J8ybLVYivdAJmDGVST4gBBI1vL5RHIMr98BEx7oGqcB+h/1
FtRIWqCjWr+Jvj6C+rdGKiocb77sJyFfZ1X7H97o5TETQeYs118kBP0iWv5FksoflUQU0
cckE6u0oDrPx/4ea3pqKPLD9/B8/vAX+WUd1y2jUnmUmZvnEeTxekjXFUTrCVLqZc1FTC
ZbbL/CQc/25QOI7sEeUigcYkPINhs6OsEe36gE2fKIjWEdVdunNOMxeQ/RS86OttzGlcP
x+ADrUTQjkuEnxZo2WTYL4kHuzPr3//DsPjLJBq8hoKXlT3fpdH5pHaiVBC3oIVCWfzSa
1LfX7XL0eFIwEc99gAfbfhljE9P77ZWX2zD9reyNNH4VCI9u92RKF5+VZ5ResOdOA0z0r
sMYue1hqHYLLQq9O42t3PBfVMrS1V+GcJ8oWn+9sOll16kQw+wVpLmba/0Btdq0MSdWxc
itrO3WwA2kqDd6qtHYAd0c9BEx8HDt66Rl56AN30LBtPRTdhNc93QDDJlPvqZE=
- job:
name: grafyaml-build-image
parent: opendev-build-docker-image
description: Build a Docker image of grafyaml
allowed-projects: opendev/grafyaml
timeout: 2700
requires:
- python-builder-3.10-bullseye-container-image
- python-base-3.10-bullseye-container-image
provides:
- grafyaml-container-image
dependencies:
- opendev-buildset-registry
vars: &grafyaml_image_vars
docker_images:
- context: .
repository: opendevorg/grafyaml
tags:
&imagetag "{{ zuul.tag is defined | ternary([zuul.get('tag', '').split('.')[0], '.'.join(zuul.get('tag', '').split('.')[:2]), zuul.get('tag', '')], ['latest']) }}"
- job:
name: grafyaml-upload-image
parent: opendev-upload-docker-image
description: Build the grafyaml Docker image and upload to Docker Hub.
timeout: 3600
requires:
- python-builder-3.10-bullseye-container-image
- python-base-3.10-bullseye-container-image
provides: grafyaml-container-image
vars: *grafyaml_image_vars
secrets:
- name: docker_credentials
secret: grafyaml-dockerhub
pass-to-parent: true
- job:
name: grafyaml-promote-image
parent: opendev-promote-docker-image
description: Promote previously uploaded Docker image.
vars: *grafyaml_image_vars
secrets:
- name: docker_credentials
secret: grafyaml-dockerhub
pass-to-parent: true
- project:
vars:
release_python: python3
check:
jobs:
- tox-pep8
- tox-py310:
nodeset: ubuntu-jammy
- opendev-buildset-registry
- grafyaml-build-image
- project-config-grafana
gate:
jobs:
- tox-pep8
- tox-py310:
nodeset: ubuntu-jammy
- grafyaml-upload-image
promote:
jobs:
- grafyaml-promote-image
release:
jobs:
- upload-docker-image:
secrets:
name: docker_credentials
secret: grafyaml-dockerhub
pass-to-parent: true
vars:
<<: *grafyaml_image_vars
upload_docker_image_promote: false