Github Action to invoke a Plural Pipeline. Commonly used to trigger pipelines after docker image builds or other CI-native processes that need to be bridged to a GitOps workflow. The action itself is a very thin js wrapper over the gql api call for your Plural Console instance.
url:
description: the url of your Plural Console instance
required: true
token:
description: the token to use to authenticate with Plural Console
required: true
pipeline:
description: the name of the pipeline to trigger
required: true
context:
description: the context to provide to the pipeline (JSON encoded)
required: true- name: Authenticate
id: plural
uses: pluralsh/setup-plural@v2
with:
consoleUrl: https://my.console.cloud.plural.sh
email: [email protected] # the email bound to your OIDC federated credential
- name: Trigger PR
uses: pluralsh/trigger-pipeline@v1
with:
url: https://my.console.cloud.plural.sh
token: ${{ steps.plural.outputs.consoleToken }}
pipleline: flow-test
context: |
{
"flow": "flow-test",
"tag": "0.1.3"
}For this to be possible you need to have configured the following:
- Federated credential to allow
[email protected]to exchange a GH actions token for a temporary Plural token. This token should have at least the scopepipeline.writeorcreatePipelineContextdirectly. - A write binding on the
flow-testPipeline to allow[email protected]to invoke it. This is not permissible by default. - The
flow-testpipeline itself. Feel free to look over some examples in https://docs.plural.sh or utilize our service catalog which often creates these for a variety of different usecases.
Trigger Pipeline is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.