GitHub-OpenShift CI/CD Pipeline Setup

Job ID: 40564332

Budget: $30 – $250 USD

I need a clean, repeatable GitHub Actions workflow that takes any StatefulSet YAML I push to a specific branch and promotes it straight into my OpenShift cluster. The steps are already mapped out in my head—checkout, install oc, login with a token, run oc apply—yet I want this formalised in a single .yml file committed to .github/workflows.

Before the deployment phase the pipeline must execute a lightweight unit-test stage. I do not mind which framework you pick; the only requirement is that tests run, fail the build if necessary, and surface results in the Actions summary so I can see a green or red badge at a glance.

Deliverable:
• A GitHub Actions workflow file that:
– triggers on push to the chosen branch
– installs and caches the OpenShift CLI
– logs in using a secret-stored token
– runs unit tests, failing fast on errors
– applies the updated StatefulSet manifest
– completes without manual intervention

I will provide the OpenShift API endpoint, token, and a sample StatefulSet to get you started. The job is done when I can push, watch the Actions job turn green, and see new pods spinning up in my cluster without touching anything else.