Skip to content

rajatharanganath/Nodejs-Sample-Pipeline

 
 

Repository files navigation

Introduction

This repository is a home for snippets of YAML code and a sample hello world server of scripting for the Harness CI Community.

Layout

The repository is broken up into six directories currently:

Tutorial
Requirements
Harness Sample YAML
Getting Started
Workflow
Build Instructions

Getting Started

Use this README to get started with our sample pipeline repository for Nodejs. This guide outlines the basics of getting started with the Harness CI and provides a full code sample for you to try out. This sample doesn’t include configuration options, for in depth steps and configuring the pipeline for example using triggers or using our templates see the Pipeline Configuration Docs.

Here we have build a simple two-stage CI Pipeline in Harness. Setting up and running the Pipeline will take about 30 minutes. The Pipeline will build and run a unit test on a sample nodejs repository upload the artifact to Docker Hub and then run integration tests. You can use publicly-available code, images, and your Github and Docker Hub accounts.

Workflow

  • Use a Kubernetes cluster build farm.
  • Build the code and run unit tests in the build farm.
  • Package the app as a Docker image and upload it to Docker Hub.
  • Pull the uploaded image to the build farm as a Background Task. Check out more about background tasks here
  • Run an integration test against the sample app.

Graphical Summary

alt text

Docs

  • Pipeline Creation & Build Set-up
  • Configuring the infrastructure & setting up Build & Run Unit Test stage
  • Build & Push Image to Docker
  • Create Integration Stage
  • Execute the Pipeline

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 40.4%
  • JavaScript 34.0%
  • Dockerfile 25.6%