Skip to content
upload-cloud

GitHub Action

Run Porter Job

v0.1.0 Latest version

Run Porter Job

upload-cloud

Run Porter Job

Run Porter Job

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Run Porter Job

uses: porter-dev/[email protected]

Learn more about this action in porter-dev/porter-run-job-action

Choose a version

porter-run-job-action

This Github action triggers a job run for a job that has been deployed on Porter.

Usage

steps:
  - name: Run Porter job
    uses: porter-dev/[email protected]
    with:
      job: job-name
      cluster: 1234
      project: 4321
      token: ${{ secrets.PORTER_TOKEN }}

Configuration Options

The possible inputs are:

  • job: (string, required): Name of job.
  • cluster: (number, required): Cluster ID of Porter cluster.
  • host: (string, optional): Host URL of Porter instance. Set this if you use a self-hosted Porter instance.
  • namespace: (string, optional): Namespace of the application (default "default")
  • project: (number, required): Project ID of Porter project.
  • token: (string, required): Token for Porter authentication.