Coder Social home page Coder Social logo

spin-trigger-pipeline-action's Introduction

typescript-action status

Spin Trigger Pipeline

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.

Usage

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'

Required Inputs

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.

Optional Inputs

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.

Build and Test this Action Locally

  1. Install the dependencies:
$ npm install
  1. Build the typescript and package it for distribution:
$ npm run build && npm run package
  1. Run the tests:
$ npm test

 PASS  ./index.test.js

...

spin-trigger-pipeline-action's People

Contributors

edgarulg avatar jparrott-fds avatar fanatic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.