Deploy Application using an Incoming Hook
As project users base grow, there's a need to rely more on processes and automation; Devopness helps by providing, among other tools, customizable CI/CD pipelines, empowering our users to automate common and repetitive tasks to improve code quality and their code review processes. Create an incoming webhook to trigger an application deploy programmatically.
Before creating an incoming webhook to trigger an application:deploy, we need the ID of a pipeline that runs the deploy operation for an application. The ID (<pipeline_id>) will be used as input parameter in the requests to be sent to Devopness API.
- On Devopness, navigate to a project then select an environment
- Find the
Applicationscard - Click
Viewin theApplicationscard to see a list of existingApplications - In the list of applications, find the application with the pipeline you want to manage and click the
NAMEof the application - Click the
Pipelinestab - In the list of pipelines, find the pipeline you want to manage and click the
NAMEof the pipelineIf you haven't created a pipeline yet, follow the Add pipeline guide
- Copy the
<pipeline_id>from the pipeline details URL, considering the following URL format:https://app.devopness.com/projects/<project_id>/environments/<environment_id>/applications/<application_id>/pipelines/<pipeline_id>
Once you have your <pipeline_id>, please follow the instructions below to add an incoming webhook to your application that triggers the deploy pipeline:
- Follow the steps on Create incoming webhook guide
- Once your web hook is created, copy the hook's unique URL (
urlfield) - Take note of the hook's secret signature key (
secretfield)If the hook was created without a
secret(non recommended), you can skip this step - Add your webhook to the source provider where each application's source code is hosted, by following the source provider's instructions on the links below:
- Bitbucket: Manage webhooks: create webhooks
- Github: Webhooks: setting up a webhook
- Gitlab: Webhooks: configure a webhook in GitLab
- Trigger the webhook, using the configured source provider event trigger options
- On the chosen Devopness environment, click
Viewin theApplicationscard to see a list of existingApplications - In the list of applications, find the application you triggered the pipeline and click the
NAMEof the application - On the upper-right corner click
DEPLOYMENTS - Click
LOGSon the action triggered by incoming hookIn
START TIMEcolumn, the name of the subject, user or incoming hook, that triggered the action will be visible, e.g: run pipeline 'deploy' on application 'website' using main branch
Add an Application
Add applications to your infrastructure environments so they can be managed and deployed directly by web interface or through automated workflows
Deploy Application
Deploy your code changes in smaller chunks to make it easier to validate the code through build and testing pipelines, reducing the feedback loop on error detection. Learn how to use Devopness to deploy application changes confidently, with zero downtime, using your own custom build pipelines and make sure your users can benefit from your application as soon as possible. The more often you deploy your application, the better it tends to improve.