CloudBees action: Deploy with Heroku

1 minute read

Use this 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 1. 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: Trigger heroku actions uses: 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 }}