This action allows you to trigger a pipeline in Spinnaker sending a POST request to a webhook configured in Spinnaker and pass parameters to the pipeline context. It lso support Cert auth for restricted environments.
Add the following entry to your Github workflow YAML file with the required inputs:
uses: armory-io/spin-trigger-pipeline-action@master
with:
baseUrl: 'http://exampleUrl'
source: 'source-word'
parameters: 'param1:value1,param2:value2'
crtFile: 'SGVsbG8sIFdvcmxkIQ=='
keyFile: 'SGVsbG8sIFdvcmxkIQ=='
passphrase: 'passphrase'
isEnconded: 'false'
The following inputs are required to use this action:
Input | Description |
---|---|
baseUrl |
Specifies the Spinnaker base url where you want to trigger the webhook. |
source |
Specifies the webhook source to trigger. |
The following inputs are optional in this action:
Input | Description |
---|---|
parameters |
Comma separated key value pairs representing parameters that would be included in the pipeline context of Spinnaker |
crtFile |
Specifies client.crt in base64. |
keyFile |
Specifies client.key in base64. |
passphrase |
Specifies passphrase to auth. |
isEncoded |
if set to true, it will decode the crtFile & keyFile before use them. |
- Install the dependencies:
$ npm install
- Build the typescript and package it for distribution:
$ npm run build && npm run package
- Run the tests:
$ npm test
PASS ./index.test.js
...