Skip to content

Commit

Permalink
Merge branch 'sclorg:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
SlouchyButton authored Aug 1, 2024
2 parents 9302810 + 5d94af4 commit 5cd9a70
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 17 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and push container images to Quay.io registry
on:
push:
branches:
- master
schedule:
- cron: '0 1 * * 3'

jobs:
build-and-push:
if: github.repository_owner == 'sclorg'
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- dockerfile: "3.3/Dockerfile.fedora"
registry_namespace: "fedora"
quayio_username: "QUAY_IMAGE_FEDORA_BUILDER_USERNAME"
quayio_token: "QUAY_IMAGE_FEDORA_BUILDER_TOKEN"
tag: "33"
docker_context: "3.3"
image_name: "ruby-33"

steps:
- name: Build and push to quay.io registry
uses: sclorg/build-and-push-action@v4
with:
registry: "quay.io"
registry_namespace: ${{ matrix.registry_namespace }}
registry_username: ${{ secrets[matrix.quayio_username] }}
registry_token: ${{ secrets[matrix.quayio_token] }}
dockerfile: ${{ matrix.dockerfile }}
docker_context: ${{ matrix.docker_context }}
tag: ${{ matrix.tag }}
image_name: ${{ matrix.image_name }}
archs: amd64, arm64
readme: "${{ matrix.docker_context }}/README.md"
quay_application_token: ${{ secrets.QUAY_IMAGE_SCLORG_UPDATE_DESC }}
5 changes: 1 addition & 4 deletions examples/rails-postgresql-persistent.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,7 @@
"secret": "${GITHUB_WEBHOOK_SECRET}"
}
}
],
"postCommit": {
"script": "bundle exec rake test"
}
]
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions test/test_ruby_ex_standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
from container_ci_suite.openshift import OpenShiftAPI

if not check_variables():
print("At least one variable from IMAGE_NAME, OS, SINGLE_VERSION is missing.")
print("At least one variable from IMAGE_NAME, OS, VERSION is missing.")
sys.exit(1)


VERSION = os.getenv("SINGLE_VERSION")
VERSION = os.getenv("VERSION")
IMAGE_NAME = os.getenv("IMAGE_NAME")
OS = os.getenv("TARGET")

Expand Down
4 changes: 2 additions & 2 deletions test/test_ruby_latest_imagestreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
TEST_DIR = Path(os.path.abspath(os.path.dirname(__file__)))

if not check_variables():
print("At least one variable from IMAGE_NAME, OS, SINGLE_VERSION is missing.")
print("At least one variable from IMAGE_NAME, OS, VERSION is missing.")
sys.exit(1)

VERSION = os.getenv("SINGLE_VERSION")
VERSION = os.getenv("VERSION")


# Replacement with 'test_latest_imagestreams'
Expand Down
4 changes: 2 additions & 2 deletions test/test_s2i_imagestreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@


if not check_variables():
print("At least one variable from IMAGE_NAME, OS, SINGLE_VERSION is missing.")
print("At least one variable from IMAGE_NAME, OS, VERSION is missing.")
sys.exit(1)


VERSION = os.getenv("SINGLE_VERSION")
VERSION = os.getenv("VERSION")
IMAGE_NAME = os.getenv("IMAGE_NAME")
OS = os.getenv("OS")

Expand Down
4 changes: 2 additions & 2 deletions test/test_s2i_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
from container_ci_suite.openshift import OpenShiftAPI

if not check_variables():
print("At least one variable from IMAGE_NAME, OS, SINGLE_VERSION is missing.")
print("At least one variable from IMAGE_NAME, OS, VERSION is missing.")
sys.exit(1)


VERSION = os.getenv("SINGLE_VERSION")
VERSION = os.getenv("VERSION")
IMAGE_NAME = os.getenv("IMAGE_NAME")
OS = os.getenv("TARGET")

Expand Down
4 changes: 2 additions & 2 deletions test/test_s2i_local_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
from container_ci_suite.utils import check_variables

if not check_variables():
print("At least one variable from IMAGE_NAME, OS, SINGLE_VERSION is missing.")
print("At least one variable from IMAGE_NAME, OS, VERSION is missing.")
sys.exit(1)


VERSION = os.getenv("SINGLE_VERSION")
VERSION = os.getenv("VERSION")
IMAGE_NAME = os.getenv("IMAGE_NAME")
OS = os.getenv("TARGET")

Expand Down
4 changes: 2 additions & 2 deletions test/test_s2i_rails_ex_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
from container_ci_suite.utils import check_variables

if not check_variables():
print("At least one variable from IMAGE_NAME, OS, SINGLE_VERSION is missing.")
print("At least one variable from IMAGE_NAME, OS, VERSION is missing.")
sys.exit(1)


VERSION = os.getenv("SINGLE_VERSION")
VERSION = os.getenv("VERSION")
IMAGE_NAME = os.getenv("IMAGE_NAME")
OS = os.getenv("TARGET")

Expand Down

0 comments on commit 5cd9a70

Please sign in to comment.