Skip to content

Latest commit

 

History

History
45 lines (25 loc) · 1.85 KB

README.adoc

File metadata and controls

45 lines (25 loc) · 1.85 KB

Run Tekton Pipelines on Quay Image Mirroring Notifications

In this section, we are going to explore the proposal by siamaksade in Red Hat’s Blog: Keep Your Applications Secure With Automatic Rebuilds and in his GitHub repository quay-mirror-pipeline.

Note
For this section, I have heavily used the utils provided by lbohnsac in his GitHub repository quay-api.

The idea is to create a mirror repository in your Quay organization that syncs repository tags every day and generates push notifications to Openshift Pipelines that will build a new image and push it to the final repository. Therefore, these will be the repositories:

  • ubi8/ubi: This is the upstream images repository.

  • alopezme/ubi8-mirror: This repository is located in my Quay instance/org and simply mirrors upstream images and generates notifications every time a new image is stored.

  • alopezme/kustomize: This repository contains the final built image with the kustomize binary.

General workflow of repositories
Figure 1. General workflow of repositories

1. Configure Quay repository

First, create a new repository that will mirror the content of the RH official registry:

Create a new repository
Figure 2. Create a new repository

Create a Robot Account with the following access to both repositories:

Permissions of the Robot Account
Figure 3. Permissions of the Robot Account

Set up notifications on push:

Permissions of the Robot Account
Figure 4. Permissions of the Robot Account

2. Configure the Tekton pipeline