Use this action to trigger Red Hat OpenShift, a hybrid cloud platform. OpenShift uses Linux containers and Kubernetes to manage applications.
This action triggers OpenShift APIs to build and deploy your application, and fetch stdout
logs as output.
All CloudBees action repositories are listed at CloudBees, Inc. on GitHub. |
Inputs
Input name | Data type | Required? | Description |
---|---|---|---|
|
String |
Yes |
The OpenShift cluster URL. |
|
String |
Yes |
The OpenShift API token. Must have read/write access. |
|
String |
Yes |
The OpenShift project name, a unique identifier for the application environment when building and deployment occurs. |
|
String |
Yes |
The source code repository name |
|
String |
Yes |
The paths to the configuration files required to build and deploy the application, listed in deployment order. |
Usage example
In your YAML file, add:
steps: - name: Build and deploy with OpenShift uses: https://github.com/cloudbees-io/openshift-invoke-deployment@v1 with: url: ${{ vars.OPENSHIFT_URL }} token: ${{ secrets.OPENSHIFT_TOKEN }} project_name: unique-openshift-project-name repository_name: ${{ vars.REPO_NAME }} repository_config_yaml_paths: my-dir/my-config