Migrate ptgbot to quay.io
This migrates publication of ptgbot container images to quay.io. We also update the source of the opendev python base images to quay.io. Depends-On: https://review.opendev.org/c/opendev/system-config/+/881932 Change-Id: Ia23aa05e770d0f002ce74effdae08dacb6edc18a
This commit is contained in:
parent
7b6b8293a8
commit
260f6f3624
57
.zuul.yaml
57
.zuul.yaml
@ -1,22 +1,24 @@
|
|||||||
- secret:
|
- secret:
|
||||||
name: ptgbot-opendev-dockerhub
|
name: ptgbot-opendev-quayio
|
||||||
data:
|
data:
|
||||||
username: opendevzuul
|
quay.io:
|
||||||
|
username: opendevorg+ptgbotrobot
|
||||||
password: !encrypted/pkcs1-oaep
|
password: !encrypted/pkcs1-oaep
|
||||||
- tpQrxd7cqPwjjKsSbDOH0GqNuFZudJDQvY43qFV8tmKh3zRTjfA5uVX5b3J60SHHYIez9
|
- wLxGIpS7huEhC7KIT++Zl7i+fNIVhJnm9YRjTabCMhoPRzKnnpiLETdiAb+63n7xXaqoA
|
||||||
9W/SU0pVm0VfH0iL9plMKoVij6LLpFlxGePiab7SimjQuiDoP2aBles7AbmdCxyNrs6M5
|
YRUt1zsVS3EHIEAK6chmH2hSq9sHxweCIAgq6H1gVwN+DOYYyv2BfHzUIQcFs3zpsdNLe
|
||||||
WCHSsg+6bE79z0r2+2+yoFYxGlbY7beRpHXkPxGpFn/g9YpOFnAch3UcnAEDnZHamxufp
|
vXC4q6GcIwAwe9qSOJ875CDsChvlbyhpwEi5C+o+w6XOO/uZMNRCL4B+vssM6IXL+inmb
|
||||||
8wIZ//UYP4Z6hwv0PcX9caw/MU8bnUGDQXBtjErohtsi8+cELKXvHBT4WU33wpf//C6MD
|
k4n1okvLvLqniQFrWvB1c1AGMJ/9lOKLdHfducd1FqKEist1K6QaA1TR1y19P9fubN78W
|
||||||
KQ3nd7NJfDtIYaN4PGOw2mlbQFq0lF4PfxlhOHjC2+k9vz+EoW85Hkfcw986CE+JINq3p
|
9D707NhvcicrCZjwrx1r0Gidi40E9cyNHot3yCeWCQeJ5+6Qku3AXsxTascyaF76LVQMy
|
||||||
k5t8GbXTDu86kkBzU6Gk+D7EVOluKZbGuTB4pcyZdjlMbty274y8xQXnplTp2rKIAdPeP
|
FKkHv2pL2PabtQzdj96doaGJ8upwORYGLsEILMXCjRoH9HgRx3NNIfZEvQFcvDFz92gnm
|
||||||
G1AcXEvZmfR0YEKg8UuR+ZJQx3Au1uEJAEpkNwH1Tbt54K/qyw1gAQDcHHkJ3odsKJe5V
|
66BCiE1EWfz2Q9nYcfKruGoSKTgLcHL3beoGsSeGJtImMDC3IR+uDjom8fekm8XBu4Pr6
|
||||||
c97Kn7roGCzwi7UWOd+XR0hvcNTUfotyBFQJzDe1+NHc6IQGQ1DeBVz5FD1JIVoj+W65E
|
bQ8VtV30IkSwJXFc7Rtz/3f6qaj0e9wgfkdZbulxhFxBJHoeoYaJHxZGRKiELpTNnqM3Y
|
||||||
XymsiQmZ+B+AxFnINS8PUTkJtlQc7zoMP/dtcYTbxtJB3XJQTOiaD00KGmr6RDWu3Uuw+
|
1Pkn18xNmfrZjGxR+88WI5XO+E+RJpn76cVitRFA6XIq6tjWSxWtMdUFtptN69HcR7rQ0
|
||||||
T6l/0vVdT7SeDY0v5wib2Elgl1Vnmxkte9oiUD9F++dW/rw42Cjlq5WqRlodaU=
|
gkYNk7+UIP78gWzbK0/uv2rXwnGw35yVotBZdpyMaiUv5eq+3iwKCW1+oDGjbw=
|
||||||
|
# No api token as we won't need to create new repos for ptgbot
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: ptgbot-build-opendev-image
|
name: ptgbot-build-opendev-image
|
||||||
parent: opendev-build-docker-image
|
parent: opendev-build-container-image
|
||||||
description: Build OpenDev Docker images for statusbot
|
description: Build OpenDev Docker images for statusbot
|
||||||
requires:
|
requires:
|
||||||
- python-builder-3.9-bullseye-container-image
|
- python-builder-3.9-bullseye-container-image
|
||||||
@ -24,14 +26,21 @@
|
|||||||
provides: ptgbot-container-image
|
provides: ptgbot-container-image
|
||||||
vars: &ptgbot_opendev_image_vars
|
vars: &ptgbot_opendev_image_vars
|
||||||
zuul_work_dir: src/opendev.org/openstack/ptgbot
|
zuul_work_dir: src/opendev.org/openstack/ptgbot
|
||||||
docker_images:
|
promote_container_image_method: intermediate-registry
|
||||||
|
promote_container_image_job: ptgbot-upload-opendev-image
|
||||||
|
container_command: docker
|
||||||
|
container_images:
|
||||||
- context: .
|
- context: .
|
||||||
repository: opendevorg/ptgbot
|
registry: quay.io
|
||||||
|
repository: quay.io/opendevorg/ptgbot
|
||||||
|
namespace: opendevorg
|
||||||
|
repo_shortname: ptgbot
|
||||||
|
repo_description: An IRC bot for managing team gatherings
|
||||||
target: ptgbot
|
target: ptgbot
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: ptgbot-upload-opendev-image
|
name: ptgbot-upload-opendev-image
|
||||||
parent: opendev-upload-docker-image
|
parent: opendev-upload-container-image
|
||||||
description: Build OpenDev statusbot Docker images and upload to Docker Hub.
|
description: Build OpenDev statusbot Docker images and upload to Docker Hub.
|
||||||
requires:
|
requires:
|
||||||
- python-builder-3.9-bullseye-container-image
|
- python-builder-3.9-bullseye-container-image
|
||||||
@ -39,29 +48,31 @@
|
|||||||
provides: ptgbot-container-image
|
provides: ptgbot-container-image
|
||||||
vars: *ptgbot_opendev_image_vars
|
vars: *ptgbot_opendev_image_vars
|
||||||
secrets:
|
secrets:
|
||||||
- name: docker_credentials
|
- name: container_registry_credentials
|
||||||
secret: ptgbot-opendev-dockerhub
|
secret: ptgbot-opendev-quayio
|
||||||
pass-to-parent: true
|
pass-to-parent: true
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: ptgbot-promote-opendev-image
|
name: ptgbot-promote-opendev-image
|
||||||
parent: opendev-promote-docker-image
|
parent: opendev-promote-container-image
|
||||||
description: Promote previously uploaded ptgbot Docker images.
|
description: Promote previously uploaded ptgbot Docker images.
|
||||||
vars: *ptgbot_opendev_image_vars
|
vars: *ptgbot_opendev_image_vars
|
||||||
secrets:
|
secrets:
|
||||||
- name: docker_credentials
|
- name: container_registry_credentials
|
||||||
secret: ptgbot-opendev-dockerhub
|
secret: ptgbot-opendev-quayio
|
||||||
pass-to-parent: true
|
pass-to-parent: true
|
||||||
- project:
|
- project:
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
- tox-pep8
|
- tox-pep8
|
||||||
- tox-py38
|
- tox-py38:
|
||||||
|
nodeset: ubuntu-focal
|
||||||
- ptgbot-build-opendev-image
|
- ptgbot-build-opendev-image
|
||||||
gate:
|
gate:
|
||||||
jobs:
|
jobs:
|
||||||
- tox-pep8
|
- tox-pep8
|
||||||
- tox-py38
|
- tox-py38:
|
||||||
|
nodeset: ubuntu-focal
|
||||||
- ptgbot-upload-opendev-image
|
- ptgbot-upload-opendev-image
|
||||||
promote:
|
promote:
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
|
|
||||||
FROM opendevorg/python-builder:3.9-bullseye as builder
|
FROM quay.io/opendevorg/python-builder:3.9-bullseye as builder
|
||||||
|
|
||||||
COPY . /tmp/src
|
COPY . /tmp/src
|
||||||
RUN assemble
|
RUN assemble
|
||||||
|
|
||||||
FROM opendevorg/python-base:3.9-bullseye as ptgbot
|
FROM quay.io/opendevorg/python-base:3.9-bullseye as ptgbot
|
||||||
|
|
||||||
COPY --from=builder /output/ /output
|
COPY --from=builder /output/ /output
|
||||||
RUN /output/install-from-bindep
|
RUN /output/install-from-bindep
|
||||||
|
Loading…
Reference in New Issue
Block a user