Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add imagestream generator #305

Merged
merged 4 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions .github/workflows/openshift-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,24 @@ on:
types:
- created
jobs:
check-imagestreams:
runs-on: ubuntu-latest
permissions:
contents: read
statuses: write
if: |
github.event.issue.pull_request
&& (contains(github.event.comment.body, '[test-openshift]') || contains(github.event.comment.body, '[test-all]'))
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
steps:
- uses: sclorg/ci-scripts/ocp-stream-generator@master
with:
ref: "refs/pull/${{ github.event.issue.number }}/head"

openshift-tests:
# This job only runs for '[test-all]' or '[test-openshift] pull request comments by owner, member
name: "${{ matrix.test_case }} tests: ${{ matrix.version }} - ${{ matrix.os_test }}"
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: check-imagestreams
concurrency:
group: ocp-${{ github.event.issue.number }}-${{ matrix.version }}-${{ matrix.os_test }}
cancel-in-progress: true
Expand All @@ -17,10 +31,6 @@ jobs:
os_test: [ "rhel7", "rhel8", "rhel9"]
test_case: [ "openshift-4" ]

if: |
github.event.issue.pull_request
&& (contains(github.event.comment.body, '[test-openshift]') || contains(github.event.comment.body, '[test-all]'))
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
steps:
- uses: sclorg/tfaga-wrapper@main
with:
Expand Down
58 changes: 58 additions & 0 deletions imagestreams/imagestreams.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
- name: perl
pretty_name: Perl
sample_repo: "https://github.com/sclorg/dancer-ex.git"
category: builder
description: >-
Build and run Perl APP_VERSION applications on DISTRO_NAME. For more information
about using this builder image, including OpenShift considerations, see
https://github.com/sclorg/s2i-perl-container/blob/master/APP_VERSION/README.md.
imagestream_files:
- filename: perl-centos.json
latest: "5.32-ubi8"
distros:
- name: UBI 7
app_versions: ["5.30"]

- name: UBI 8
app_versions: ["5.26", "5.32"]

- name: UBI 9
app_versions: ["5.32"]
custom_tags:
- name: "5.30"
distro: UBI 7
app_version: ["5.30"]

- filename: perl-rhel.json
latest: "5.32-ubi8"
distros:
- name: UBI 7
app_versions: ["5.30"]

- name: UBI 8
app_versions: ["5.26", "5.32"]

- name: UBI 9
app_versions: ["5.32"]
custom_tags:
- name: "5.30"
distro: UBI 7
app_version: ["5.30"]

- filename: perl-rhel-aarch64.json
latest: "5.32-ubi8"
distros:
- name: UBI 7
phracek marked this conversation as resolved.
Show resolved Hide resolved
app_versions: ["5.30"]

- name: UBI 8
app_versions: ["5.26", "5.32"]

- name: UBI 9
app_versions: ["5.32"]
custom_tags:
- name: "5.30"
distro: UBI 7
app_version: ["5.30"]
...
65 changes: 30 additions & 35 deletions imagestreams/perl-centos.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,38 @@
"spec": {
"tags": [
{
"name": "latest",
"name": "5.30-ubi7",
"annotations": {
"openshift.io/display-name": "Perl (Latest)",
"openshift.io/display-name": "Perl 5.30 (UBI 7)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run Perl applications on UBI. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.32/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version of Perl available on OpenShift, including major version updates.",
"description": "Build and run Perl 5.30 applications on UBI 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.30/README.md.",
"iconClass": "icon-perl",
"tags": "builder,perl",
"supports":"perl",
"version": "5.30",
"sampleRepo": "https://github.com/sclorg/dancer-ex.git"
},
"from": {
"kind": "ImageStreamTag",
"name": "5.32-ubi8"
"kind": "DockerImage",
"name": "registry.access.redhat.com/ubi7/perl-530:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "5.32-ubi9",
"name": "5.26-ubi8",
"annotations": {
"openshift.io/display-name": "Perl 5.32 (UBI 9)",
"openshift.io/display-name": "Perl 5.26 (UBI 8)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run Perl 5.32 applications on UBI 9. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.32/README.md.",
"iconClass": "icon-perl",
"description": "Build and run Perl 5.26 applications on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.26/README.md.",
"iconClass": "icon-perl",
"tags": "builder,perl",
"supports":"perl:5.32,perl",
"version": "5.32",
"version": "5.26",
"sampleRepo": "https://github.com/sclorg/dancer-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "registry.access.redhat.com/ubi9/perl-532:latest"
"name": "registry.access.redhat.com/ubi8/perl-526:latest"
},
"referencePolicy": {
"type": "Local"
Expand All @@ -54,9 +53,8 @@
"openshift.io/display-name": "Perl 5.32 (UBI 8)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run Perl 5.32 applications on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.32/README.md.",
"iconClass": "icon-perl",
"iconClass": "icon-perl",
"tags": "builder,perl",
"supports":"perl:5.32,perl",
"version": "5.32",
"sampleRepo": "https://github.com/sclorg/dancer-ex.git"
},
Expand All @@ -69,20 +67,19 @@
}
},
{
"name": "5.30-el7",
"name": "5.32-ubi9",
"annotations": {
"openshift.io/display-name": "Perl 5.30 (CentOS 7)",
"openshift.io/display-name": "Perl 5.32 (UBI 9)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run Perl 5.30 applications on CentOS 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.30/README.md.",
"description": "Build and run Perl 5.32 applications on UBI 9. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.32/README.md.",
"iconClass": "icon-perl",
"tags": "builder,perl",
"supports":"perl:5.30,perl",
"version": "5.30",
"version": "5.32",
"sampleRepo": "https://github.com/sclorg/dancer-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "quay.io/centos7/perl-530-centos7:latest"
"name": "registry.access.redhat.com/ubi9/perl-532:latest"
},
"referencePolicy": {
"type": "Local"
Expand All @@ -91,38 +88,36 @@
{
"name": "5.30",
"annotations": {
"openshift.io/display-name": "Perl 5.30",
"openshift.io/display-name": "Perl ['5.30'] (UBI 7)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run Perl 5.30 applications on CentOS 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.30/README.md.",
"description": "Build and run Perl ['5.30'] applications on UBI 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/['5.30']/README.md.",
"iconClass": "icon-perl",
"tags": "builder,perl,hidden",
"supports":"perl:5.30,perl",
"version": "5.30",
"tags": "builder,perl",
"version": "['5.30']",
"sampleRepo": "https://github.com/sclorg/dancer-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "quay.io/centos7/perl-530-centos7:latest"
"name": "registry.access.redhat.com/ubi7/perl-['530']:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "5.26-ubi8",
"name": "latest",
"annotations": {
"openshift.io/display-name": "Perl 5.26 (UBI 8)",
"openshift.io/display-name": "Perl 5.32 (Latest)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run Perl 5.26 applications on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.26-mod_fcgid/README.md.",
"iconClass": "icon-perl",
"description": "Build and run Perl 5.32 applications on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.32/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version available on OpenShift, including major version updates.\n",
"iconClass": "icon-perl",
"tags": "builder,perl",
"supports":"perl:5.26,perl",
"version": "5.26",
"version": "5.32",
"sampleRepo": "https://github.com/sclorg/dancer-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "registry.access.redhat.com/ubi8/perl-526:latest"
"kind": "ImageStreamTag",
"name": "5.32-ubi8"
},
"referencePolicy": {
"type": "Local"
Expand Down
79 changes: 57 additions & 22 deletions imagestreams/perl-rhel-aarch64.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,38 @@
"spec": {
"tags": [
{
"name": "latest",
"name": "5.30-ubi7",
"annotations": {
"openshift.io/display-name": "Perl (Latest)",
"openshift.io/display-name": "Perl 5.30 (UBI 7)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run Perl applications on UBI. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.32/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version of Perl available on OpenShift, including major version updates.",
"description": "Build and run Perl 5.30 applications on UBI 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.30/README.md.",
"iconClass": "icon-perl",
"tags": "builder,perl",
"supports":"perl",
"version": "5.30",
"sampleRepo": "https://github.com/sclorg/dancer-ex.git"
},
"from": {
"kind": "ImageStreamTag",
"name": "5.32-ubi8"
"kind": "DockerImage",
"name": "registry.redhat.io/ubi7/perl-530:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "5.32-ubi9",
"name": "5.26-ubi8",
"annotations": {
"openshift.io/display-name": "Perl 5.32 (UBI 9)",
"openshift.io/display-name": "Perl 5.26 (UBI 8)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run Perl 5.32 applications on UBI 9. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.32/README.md.",
"iconClass": "icon-perl",
"description": "Build and run Perl 5.26 applications on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.26/README.md.",
"iconClass": "icon-perl",
"tags": "builder,perl",
"supports":"perl:5.32,perl",
"version": "5.32",
"version": "5.26",
"sampleRepo": "https://github.com/sclorg/dancer-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/ubi9/perl-532:latest"
"name": "registry.redhat.io/ubi8/perl-526:latest"
},
"referencePolicy": {
"type": "Local"
Expand All @@ -54,9 +53,8 @@
"openshift.io/display-name": "Perl 5.32 (UBI 8)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run Perl 5.32 applications on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.32/README.md.",
"iconClass": "icon-perl",
"iconClass": "icon-perl",
"tags": "builder,perl",
"supports":"perl:5.32,perl",
"version": "5.32",
"sampleRepo": "https://github.com/sclorg/dancer-ex.git"
},
Expand All @@ -69,20 +67,57 @@
}
},
{
"name": "5.26-ubi8",
"name": "5.32-ubi9",
"annotations": {
"openshift.io/display-name": "Perl 5.26 (UBI 8)",
"openshift.io/display-name": "Perl 5.32 (UBI 9)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run Perl 5.26 applications on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.26-mod_fcgid/README.md.",
"iconClass": "icon-perl",
"description": "Build and run Perl 5.32 applications on UBI 9. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.32/README.md.",
"iconClass": "icon-perl",
"tags": "builder,perl",
"supports":"perl:5.26,perl",
"version": "5.26",
"version": "5.32",
"sampleRepo": "https://github.com/sclorg/dancer-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/ubi8/perl-526:latest"
"name": "registry.redhat.io/ubi9/perl-532:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "5.30",
"annotations": {
"openshift.io/display-name": "Perl ['5.30'] (UBI 7)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run Perl ['5.30'] applications on UBI 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/['5.30']/README.md.",
"iconClass": "icon-perl",
"tags": "builder,perl",
"version": "['5.30']",
"sampleRepo": "https://github.com/sclorg/dancer-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/ubi7/perl-['530']:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "latest",
"annotations": {
"openshift.io/display-name": "Perl 5.32 (Latest)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run Perl 5.32 applications on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.32/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version available on OpenShift, including major version updates.\n",
"iconClass": "icon-perl",
"tags": "builder,perl",
"version": "5.32",
"sampleRepo": "https://github.com/sclorg/dancer-ex.git"
},
"from": {
"kind": "ImageStreamTag",
"name": "5.32-ubi8"
},
"referencePolicy": {
"type": "Local"
Expand Down
Loading