Skip to content

Commit 35f372c

Browse files
authored
Merge pull request #439 from sclorg/support_building_testing_on_fedora_and_quay
Support building testing on fedora and quay
2 parents 262f647 + fc8fd2a commit 35f372c

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

.github/workflows/build-and-push.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,52 @@ jobs:
1818
dockerfile: "Dockerfile"
1919
registry_namespace: "centos7"
2020
tag: "centos7"
21+
suffix: "centos7"
2122
quayio_username: "QUAY_IMAGE_BUILDER_USERNAME"
2223
quayio_token: "QUAY_IMAGE_BUILDER_TOKEN"
2324
- dockerfile_path: "12"
2425
dockerfile: "Dockerfile"
2526
registry_namespace: "centos7"
2627
tag: "centos7"
28+
suffix: "centos7"
2729
quayio_username: "QUAY_IMAGE_BUILDER_USERNAME"
2830
quayio_token: "QUAY_IMAGE_BUILDER_TOKEN"
2931
- dockerfile_path: "13"
3032
dockerfile: "Dockerfile"
3133
registry_namespace: "centos7"
3234
tag: "centos7"
35+
suffix: "centos7"
3336
quayio_username: "QUAY_IMAGE_BUILDER_USERNAME"
3437
quayio_token: "QUAY_IMAGE_BUILDER_TOKEN"
3538
- dockerfile_path: "13"
3639
dockerfile: "Dockerfile.c9s"
3740
registry_namespace: "sclorg"
3841
tag: "c9s"
42+
suffix: "c9s"
3943
quayio_username: "QUAY_IMAGE_SCLORG_BUILDER_USERNAME"
4044
quayio_token: "QUAY_IMAGE_SCLORG_BUILDER_TOKEN"
45+
- dockerfile_path: "11"
46+
dockerfile: "Dockerfile.fedora"
47+
registry_namespace: "fedora"
48+
tag: "11"
49+
quayio_username: "QUAY_IMAGE_FEDORA_BUILDER_USERNAME"
50+
quayio_token: "QUAY_IMAGE_FEDORA_BUILDER_TOKEN"
51+
- dockerfile_path: "12"
52+
dockerfile: "Dockerfile.fedora"
53+
registry_namespace: "fedora"
54+
tag: "12"
55+
quayio_username: "QUAY_IMAGE_FEDORA_BUILDER_USERNAME"
56+
quayio_token: "QUAY_IMAGE_FEDORA_BUILDER_TOKEN"
57+
- dockerfile_path: "13"
58+
dockerfile: "Dockerfile.fedora"
59+
registry_namespace: "fedora"
60+
tag: "13"
61+
quayio_username: "QUAY_IMAGE_FEDORA_BUILDER_USERNAME"
62+
quayio_token: "QUAY_IMAGE_FEDORA_BUILDER_TOKEN"
4163

4264
steps:
4365
- name: Build and push to quay.io registry
44-
uses: sclorg/build-and-push-action@v1
66+
uses: sclorg/build-and-push-action@v2
4567
with:
4668
registry: "quay.io"
4769
registry_namespace: ${{ matrix.registry_namespace }}
@@ -52,3 +74,4 @@ jobs:
5274
dockerfile_path: ${{ matrix.dockerfile_path }}
5375
tag: ${{ matrix.tag }}
5476
use_distgen: "true"
77+
suffix: ${{ matrix.suffix }}

src/Dockerfile.fedora

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.fedoraproject.org/{{ spec.latest_fedora }}/s2i-core:latest
1+
FROM quay.io/fedora/s2i-core:35
22

33
# PostgreSQL image for OpenShift.
44
# Volumes:
@@ -33,9 +33,9 @@ LABEL summary="$SUMMARY" \
3333
io.openshift.tags="database,postgresql,postgresql{{ spec.short }}" \
3434
com.redhat.component="$NAME" \
3535
maintainer="SoftwareCollections.org <[email protected]>" \
36-
name="$FGC/$NAME" \
36+
name="fedora/$NAME-{{ spec.short }}" \
3737
version="0" \
38-
usage="docker run -d --name postgresql_database -e POSTGRESQL_USER=user -e POSTGRESQL_PASSWORD=pass -e POSTGRESQL_DATABASE=db -p 5432:5432 $FGC/$NAME"
38+
usage="docker run -d --name postgresql_database -e POSTGRESQL_USER=user -e POSTGRESQL_PASSWORD=pass -e POSTGRESQL_DATABASE=db -p 5432:5432 quay.io/fedora/$NAME-{{ spec.short }}"
3939

4040
EXPOSE 5432
4141

0 commit comments

Comments
 (0)