zuul-client/.zuul.yaml
James E. Blair 69ef76bec6 Publish images to quay.io
Change-Id: I004cdf2dd85ac1d75296c5c4e0a8c9d15838c80c
Depends-On: https://review.opendev.org/c/opendev/base-jobs/+/878288
2023-03-23 12:58:12 -07:00

130 lines
4.7 KiB
YAML

- secret:
name: zuul-client-dockerhub
data:
username: zuulzuul
password: !encrypted/pkcs1-oaep
- KAo13fUM9WtpXMayx7ZZbONJMtJea4E7OuxLErWH4aYUwopQ49LzrTi0lV9x9BXuoYEfh
iWPLb34DBzQqFQQRnbqNN3PRyNF5eSFeBhi/5JknWA0Vv73aXJRDBB1I3jXXyHoaHOWU2
enzeWmsLXVD3j/HmLnPEBcNd+XcMjodtEZ+Q2QZ1oCsrgW4i3Zl/3PAvcbTJBxmPFWvkm
VuGXt/WjGWibnkfZexSjABMtGgoUQXhJ8stjxoe2DtGe9yZ86pAsANo51c2cxtCx+eZlz
yjhK6mpXbwn3axGjW5p8Ij7TA7TRoU8iz1S6937KQwfo78EKlJ5EmyVWP4QIjHUDxyGoc
oMGFSQLkmZNnRBGAgLUyu6Zo7l+6AYjmlbh5xX4fWrPrQawGXJb7+2k7/hI/GprXZ30D2
mW3bf5+CcEHCRp6jNf9mjK9bDyK/XxbLxEtJc+7txNyOeIarFCx5vXu3XSfF15YRtSXbx
GeloNicZZsJNjJT0U9TJmRpdsIrg8aumpHtZCy0PhHcOCwTOYNSsIxfN4XDMRbAa0OW09
/ZjKtC+ftXNtvtFxcsxKYD/VqFZGgc4ZtHJV1OE+2bOj436AUo3doYjrkwitX4IfZQNEs
PdwF2MW3w/xLLbl+jQqM6tp/1snbuRK/l1rP8XFCQUlb2sZE3oCAJJNAsQNPFY=
- secret:
name: zuul-client-registry-credentials
data:
quay.io:
username: zuul-ci+opendevzuul
password: !encrypted/pkcs1-oaep
- GX8hh/xfQU8kvjbyXXtkSoFjgdV4ElWHPhWcFg5IOTD1uNdRK6taeM7mSpK/A72nSWrna
Ux92/67XGUbw5vHFVdaLEAc8QwEFewUSowQf6UMDd4aUmH/15HHCKL8JiGfAfnbmlFyX+
4xH9tAHT+3oK4uca9C9Fx+pNsYRm/2d/kYO4k4KKw4azf1ALMHUqrkHT4CZyaVICoqsfG
23EryqP0JsGZrFNccCGCxlzmNVR6JZi6y62udOjm/JnU8+JZwgQl6UbBj8wyK/dYN/XUF
dBn0LZBzTP5r+qU9Tb8181SNKl7MqhrNt7xBfCSyn9qef66G8SKdjtO8YSF1+5dbrI7GJ
Axmgj2GyAFUTnp630QMch/zquuDKmEeFZRkVr7+Gwwd0WRRJRc519+rzbD0+vLAgfqQ2Z
x8lK5+zQMsPWDyh4l98j75gTMMOcfC0s1eDlXeHfkIqd9GK0WA/RCen8u+JcR/dB3mbxH
mq4UKERj9Tlz6IlXI2N0/Pfs/9eIJH6kZwRr9F2PDxWEW/5M4KRs3BvyOPf0TNIdFxOgy
MLkNzgHuRRDzPb6aBq1rzmZs7aHVXKeI9RTS34HnOml/LKvkvP3CuqmK1HGBWqiMSh/y3
M127RdfowOpcXKGuXm/jC0QD8vmefX+H2h4yMU20N9t9IMZ9A+vNUa9Zp0vgzE=
- job:
name: zuul-client-build-image
parent: opendev-build-container-image
description: Build a container image for the CLI.
allowed-projects: zuul/zuul-client
timeout: 2700
requires:
- python-builder-3.10-bullseye-container-image
- python-base-3.10-bullseye-container-image
provides:
- zuul-client-container-image
vars: &zuulclient_image_vars
container_command: docker
container_images:
- context: .
registry: quay.io
repository: quay.io/zuul-ci/zuul-client
tags:
&imagetag "{{ zuul.tag is defined | ternary([zuul.get('tag', '').split('.')[0], '.'.join(zuul.get('tag', '').split('.')[:2]), zuul.get('tag', '')], ['latest']) }}"
- job:
name: zuul-client-upload-image
parent: opendev-upload-container-image
description: Build the CLI container image and upload to the registry.
timeout: 3600
requires:
- python-builder-3.10-bullseye-container-image
- python-base-3.10-bullseye-container-image
provides: zuul-client-container-image
vars: *zuulclient_image_vars
secrets:
- name: container_registry_credentials
secret: zuul-client-registry-credentials
pass-to-parent: true
- job:
name: zuul-client-promote-image
parent: opendev-promote-container-image
description: Promote previously uploaded container image.
vars: *zuulclient_image_vars
secrets:
- name: container_registry_credentials
secret: zuul-client-registry-credentials
pass-to-parent: true
- project:
queue: zuul
vars:
release_python: python3
check:
jobs:
- zuul-nox-docs
- zuul-client-build-image
- nox-linters:
vars:
nox_install_bindep: false
- nox-py38:
nodeset: ubuntu-focal
timeout: 3600
- nox-py310:
nodeset: ubuntu-jammy
timeout: 3600
- zuul-nox-zuul-client
- build-python-release
gate:
jobs:
- zuul-nox-docs
- nox-linters:
vars:
nox_install_bindep: false
- nox-py38:
nodeset: ubuntu-focal
timeout: 3600
- nox-py310:
nodeset: ubuntu-jammy
timeout: 3600
- zuul-nox-zuul-client
- build-python-release
- zuul-client-upload-image
promote:
jobs:
- opendev-promote-python
- zuul-promote-docs
- zuul-client-promote-image
release:
jobs:
- opendev-release-python
- zuul-publish-nox-docs
- upload-container-image:
secrets:
- name: container_registry_credentials
secret: zuul-client-registry-credentials
pass-to-parent: true
vars:
<<: *zuulclient_image_vars
upload_container_image_promote: false