Deploy using Ansible, Argo Workflows, Heroku, Octopus, OpenShift, Spinnaker, and Tosca with CloudBees deployment actions.

Run an Ansible playbook

Use the cloudbees-io/ansible-run-job action to run an Ansible playbook via Ansible AWX or Ansible Automation Platform (AAP).

All CloudBees action repositories are listed at CloudBees, Inc. on GitHub.

Inputs

Table 1. Input details
Input name Data type Required? Description

url

String

Yes

The URL of Ansible AWX or AAP that has the REST APIs exposed.

token

String

Yes

An API token generated with the appropriate read or write access.

job_template_name

String

Required only if workflow_job_template_name is not specified.

The name of the job template with the Ansible playbook.

workflow_job_template_name

String

Required only if job_template_name is not specified.

The name of the workflow job template for the workflow configured on AWX or AAP.

Usage example

In your YAML file, add:

- name: Run Ansible playbook uses: https://github.com/cloudbees-io/ansible-run-job@v1 with: url: ${{ secrets.ANSIBLE_AWX_URL }} token: ${{ secrets.API_TOKEN }} job_template_name: "sample job template name"
▼

Deploy with Argo Workflows

Use the cloudbees-io/argocd-run-workflow action to run an Argo Workflows workflow, a CI/CD pipeline tool for managing and executing complex workflows in Kubernetes.

All CloudBees action repositories are listed at CloudBees, Inc. on GitHub.

Inputs

Table 2. Input details
Input name Data type Required? Description

url

String

Yes

The Argo Workflows server URL.

token

String

Yes

The Argo Workflows token.

namespace

String

Yes

The Argo Workflows namespace.

workflow-name

String

Yes

The Argo Workflows name.

parameters

JSON

No

Any additional parameters, formatted as JSON data in key/value pairs.

Usage example

In your YAML file, add:

- name: Run Argo Workflows uses: https://github.com/cloudbees-io/argocd-run-workflow@v2 with: url: ${{ ARGO_URL }} token: ${{ ARGO_TOKEN }} namespace: "Argo_namespace" workflow-name: "Argo_workflow_name" parameters: '{"BRANCH_NAME":"main","ENV_NAME":"prod"}'
▼

Deploy with Heroku

Use the cloudbees-io/heroku-run-job action to trigger Heroku APIs to build and deploy your application, and fetch the stdout logs as output.

All CloudBees action repositories are listed at CloudBees, Inc. on GitHub.

Inputs

Table 3. Input details
Input name Data type Required? Description

token

String

Yes

The Heroku API token generated with read or write access.

application_name

String

Yes

The Heroku application name, which is a unique identifier for the application environment where the build occurs.

repository_name

String

Yes

The name of the repository where the source code resides.

private_repository_personal_access_token

String

Yes

The personal access token to clone the source repository.

Usage example

In your YAML file, add:

- name: Run Heroku job uses: https://github.com/cloudbees-io/heroku-run-job@v1 with: url: "https://api.heroku.com" token: ${{ secrets.HEROKU_TOKEN }} application_name: ${{ inputs.application_name }} repository_name: ${{ inputs.repository_name }} private_repository_personal_access_token: ${{ secrets.HEROKU_REPOSITORY_PERSONAL_ACCESS_TOKEN }}
▼

Deploy with Octopus

Use the cloudbees-io/octopus-run-project action to deliver your software with Octopus Deploy, a deployment automation tool.