Harness.io is a Continuous Delivery as a Service enterprise platform for automation of application and micro-service deployments.
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.
To create an application, if it does not exist, go to Configure and add an application:
Create a new Workflow of a type “Build Workflow”:
Add workflow variables, at the minimum GITHUB_USER, GITHUB_PASSWORD, and GITHUB_BRANCH:
Add workflow steps for pulling the data from GitHub and executing the start.sh
script, for example:
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:
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:
Note: In project source code you can find an example of a workflow, under the integrations/Harnessio
directory:
integrations/Harnessio/Workflow.yml
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:
This will trigger your deployment and you can track progress in console output on the right side of the Harness.io UI.