GithubHelp home page GithubHelp logo

isabella232 / spinnaker-orb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from circleci-public/spinnaker-orb

0.0 0.0 0.0 62 KB

A CircleCI Orb to simplify deployments via Spinnaker.

Home Page: http://circleci.com/orbs/registry/orb/circleci/spinnaker

License: MIT License

spinnaker-orb's Introduction

Spinnaker Orb CircleCI status CircleCI Orb Version MIT licensed CircleCI Community

A CircleCI Orb to simplify deployments to Spinnaker.

Here are some features that the Spinnaker orb provides:

  • Triggering a Spinnaker application pipeline with a webhook via the trigger-pipeline-with-webhook command.
  • Installing the spin CLI for managing Spinnaker applications via the install-spin command, with a convenience option that generates a simple configuration for a locally-available Spinnaker Gate.
  • set-up-port-forwarding enables setting up port forwarding for Spinnaker Deck and Spinnaker Gate to interact with Spinnaker through a localhost URL.

Usage

See the orb registry listing for usage guidelines.

Requirements

  • curl should be present in PATH.

  • Some of the commands require a Linux environment to execute in. Refer to the orb registry listing for the descriptions of each command.

  • SPINNAKER_WEBHOOK environment variable should be set in CircleCI project settings

Examples

Full usage examples can be found on the Spinnaker orb's page in the orb registry, here.

version: 2.1
orbs:
  # In this example, Spinnaker is assumed to already be
  # deployed on an AWS EKS k8s cluster.
  aws-eks: circleci/[email protected]
  # Replace "x.y.z" with actual orb version
  spinnaker: circleci/[email protected]
jobs:
  send-webhook:
    parameters:
      cluster-name:
        description: |
          Name of the EKS cluster
        type: string
      aws-region:
        description: |
          AWS region that the EKS cluster is in
        type: string
    executor: spinnaker/default-stretch
    steps:
      # Set up k8s cluster connection.
      # In this example, Spinnaker is deployed on an AWS EKS k8s cluster.
      - aws-eks/update-kubeconfig-with-authenticator:
          cluster-name: << parameters.cluster-name >>
          install-kubectl: true
          aws-region: << parameters.aws-region >>
      # Set wait to true to ensure the webhook endpoint will be
      # ready for access via localhost in the next step
      - spinnaker/set-up-port-forwarding:
          namespace: spinnaker
          wait: true
      # Send a request to a webhook endpoint pre-configured in Spinnaker
      # Ref: https://www.spinnaker.io/guides/user/pipeline/triggers/webhooks/
      - spinnaker/trigger-pipeline-with-webhook:
          # Example env var value: "http://localhost:8084/webhooks/webhook/myappwebhook"
          webhook-endpoint: SPINNAKER_WEBHOOK
          payload: "{\\\"status\\\": \\\"success\\\", \\\"jobid\\\": \\\"$CIRCLE_WORKFLOW_JOB_ID\\\", \\\"message\\\": \\\"I've got it\\\"}"
workflows:
  example-workflow:
    jobs:
      - send-webhook:
          cluster-name: my-eks-tests
          aws-region: ap-southeast-2

Contributing

We welcome issues to and pull requests against this repository!

For further questions/comments about this or other orbs, visit CircleCI's orbs discussion forum.

spinnaker-orb's People

Contributors

artplan1 avatar backendtea avatar buscedv avatar gmemstr avatar kyletryon avatar lokst avatar wenzdey 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.