This action allows you to trigger a pipeline in Spinnaker sending a POST request to a webhook configured in Spinnaker. It helps us to trigger a CD for a Spinnaker services.
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'
serviceName: 'spinnaker-service-name'
image: 'image-repository'
tag: 'service-tag'
secret: 'secret'
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. |
serviceName |
Specifies the Spinnaker service name to deploy. |
image |
Specifies the image to deploy. |
tag |
Specifies the tag to deploy. |
The following inputs are optional in this action:
Input | Description |
---|---|
secret |
Secret word to allow execution in spinnaker webhook. |
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
...