Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
78 changes: 10 additions & 68 deletions .github/workflows/container-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,72 +4,14 @@ on:
- created
jobs:
distgen-check:
name: "Check distgen generated files"
runs-on: ubuntu-latest
concurrency:
group: container-${{ github.event.issue.number }}-${{ matrix.version }}-${{ matrix.os_test }}
cancel-in-progress: true
if: |
github.event.issue.pull_request
&& (contains(github.event.comment.body, '[test]') || contains(github.event.comment.body, '[test-all]'))
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
steps:
- name: Checkout repo
uses: actions/checkout@v5
with:
ref: "refs/pull/${{ github.event.issue.number }}/head"
submodules: true

- name: Check distgen generated files
id: check
shell: bash
run: |
sha=$(git rev-parse HEAD)
sudo apt update && sudo apt -y install python3-pip
pip3 install distgen
result="success"
./common/tests/check_distgen_generated_files.sh || result="failure"
echo "result=$result" >> "$GITHUB_OUTPUT"
echo "sha=$sha" >> "$GITHUB_OUTPUT"
- name: Set final commit status
uses: myrotvorets/set-commit-status-action@v2.0.0
with:
status: ${{ steps.check.outputs.result }}
context: "Distgen check"
sha: ${{ steps.check.outputs.sha }}

- name: Exit on ERR
shell: bash
run: |
_result=${{ steps.check.outputs.result }}
if [ "$_result" == failure ]; then
echo "::error::Distgen-generated files are not regenerated properly."
echo "::warning::Please regenerate them with:"
echo "::warning::'make clean-versions'"
echo "::warning::'make generate-all'"
exit 1
fi
uses: "sclorg/ci-actions/.github/workflows/distgen-check.yml@main"
check-readme:
uses: "sclorg/ci-actions/.github/workflows/check-readme.yml@main"
container-tests:
needs: distgen-check
runs-on: ubuntu-latest
name: "Container tests: ${{ matrix.version }} - ${{ matrix.os_test }}"
strategy:
fail-fast: false
matrix:
version: [ "11", "12", "13", "14", "15", "16" ]
os_test: [ "fedora", "rhel8", "rhel9", "rhel10", "c9s", "c10s" ]
test_case: [ "container" ]

if: |
github.event.issue.pull_request
&& (contains(github.event.comment.body, '[test]') || contains(github.event.comment.body, '[test-all]'))
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
steps:
- uses: sclorg/tfaga-wrapper@main
with:
os_test: ${{ matrix.os_test }}
version: ${{ matrix.version }}
test_case: ${{ matrix.test_case }}
public_api_key: ${{ secrets.TF_PUBLIC_API_KEY }}
private_api_key: ${{ secrets.TF_INTERNAL_API_KEY }}
needs: check-readme
uses: "sclorg/ci-actions/.github/workflows/container-tests.yml@main"
with:
enabled-tests: '["container","openshift-4","openshift-pytest"]'
versions: '[ "12", "13", "15", "16" ]'
openshift-versions: '[ "12", "13", "15", "16" ]'
secrets: inherit
41 changes: 0 additions & 41 deletions .github/workflows/openshift-pytests.yml

This file was deleted.

60 changes: 0 additions & 60 deletions .github/workflows/openshift-tests.yml

This file was deleted.

38 changes: 13 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@

[![Build and push images to Quay.io registry](https://github.com/sclorg/postgresql-container/actions/workflows/build-and-push.yml/badge.svg)](https://github.com/sclorg/postgresql-container/actions/workflows/build-and-push.yml)

Images available on Quay.io are:

- CentOS Stream 9 [postgresql-13](https://quay.io/repository/sclorg/postgresql-13-c9s)
- CentOS Stream 9 [postgresql-15](https://quay.io/repository/sclorg/postgresql-15-c9s)
- CentOS Stream 9 [postgresql-16](https://quay.io/repository/sclorg/postgresql-16-c9s)
- CentOS Stream 10 [postgresql-16](https://quay.io/repository/sclorg/postgresql-16-c10s)
- Fedora [postgresql-15](https://quay.io/repository/fedora/postgresql-15)
- Fedora [postgresql-16](https://quay.io/repository/fedora/postgresql-16)

This repository provides Dockerfiles for PostgreSQL container images, optimized for use with OpenShift. These images are available in RHEL, Fedora, and CentOS-based variants.

For more information about using these images with OpenShift, please refer to the official [OpenShift Documentation](https://docs.okd.io/latest/openshift_images/using-templates.html).
Expand All @@ -19,22 +10,19 @@ To contribute to this project, please review [the Contribution Guidelines](https
For learning more information about concepts used in these container images, see the [Landing page](https://github.com/sclorg/welcome).

## Versions

PostgreSQL versions currently supported are:

- [postgresql-12](https://github.com/sclorg/postgresql-container/tree/master/12)
- [postgresql-13](https://github.com/sclorg/postgresql-container/tree/master/13)
- [postgresql-15](https://github.com/sclorg/postgresql-container/tree/master/15)
- [postgresql-16](https://github.com/sclorg/postgresql-container/tree/master/16)

RHEL versions currently supported are:
- RHEL8
- RHEL9
- RHEL10

CentOS Stream versions currently supported are:
- CentOS Stream 9
- CentOS Stream 10
Currently supported versions are visible in the following table, expand an entry to see its container registry address.
<!--
Table start
-->
||CentOS Stream 9|CentOS Stream 10|Fedora|RHEL 8|RHEL 9|RHEL 10|
|:--|:--:|:--:|:--:|:--:|:--:|:--:|
|12||||<details><summary>✓</summary>`registry.redhat.io/rhel8/postgresql-12`</details>|||
|13|<details><summary>✓</summary>`quay.io/sclorg/postgresql-13-c9s`</details>|||<details><summary>✓</summary>`registry.redhat.io/rhel8/postgresql-13`</details>|<details><summary>✓</summary>`registry.redhat.io/rhel9/postgresql-13`</details>||
|15|<details><summary>✓</summary>`quay.io/sclorg/postgresql-15-c9s`</details>||<details><summary>✓</summary>`quay.io/fedora/postgresql-15`</details>|<details><summary>✓</summary>`registry.redhat.io/rhel8/postgresql-15`</details>|<details><summary>✓</summary>`registry.redhat.io/rhel9/postgresql-15`</details>||
|16|<details><summary>✓</summary>`quay.io/sclorg/postgresql-16-c9s`</details>|<details><summary>✓</summary>`quay.io/sclorg/postgresql-16-c10s`</details>|<details><summary>✓</summary>`quay.io/fedora/postgresql-16`</details>|<details><summary>✓</summary>`registry.redhat.io/rhel8/postgresql-16`</details>|<details><summary>✓</summary>`registry.redhat.io/rhel9/postgresql-16`</details>|<details><summary>✓</summary>`registry.redhat.io/rhel10/postgresql-16`</details>|
<!--
Table end
-->

## Installation

Expand Down