Harness.io

Harness.io is a Continuous Delivery as a Service enterprise platform for automation of application and micro-service deployments.

Running for the first time - setup

In case that on your account you already have an application and workflow with steps set, proceed to the next chapter to run the Harness.io deployment, otherwise proceed to the next section.

Create an application and a workflow

To create an application, if it does not exist, go to Configure and add an application:

Harness_new_app

Create a new Workflow of a type “Build Workflow”:

Harness_workflow

Add workflow variables and steps

Add workflow variables, at the minimum GITHUB_USER, GITHUB_PASSWORD, and GITHUB_BRANCH:

Harness_env_vars

Add workflow steps for pulling the data from GitHub and executing the start.sh script, for example:

Harness_workflow_steps

Workflow step type should be Shell Script, and to pull data from a GitHub repo install the necessary packages and use already defined workflow variables:

Harness_step_1_github

In next step, we are using the downloaded source code to run the start.sh script. Note that we are can set environment variables as workflow variables and in start script only overrides runtime parameter default values and/or environment variable values if necessary:

Harness_step_2_start

Note: In project source code you can find an example of a workflow, under the integrations/Harnessio directory:

integrations/Harnessio/Workflow.yml

Run Harness.io deployment

Navigate to Setup, choose your Application from a list, and pick a Workflow that you wish to use. Click Deploy and update environment variables if necessary when prompted, similar to the screenshot below:

Harness_io_deploy

This will trigger your deployment and you can track progress in console output on the right side of the Harness.io UI.