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.
Steps to find the <pipeline_id>
of an application:deploy
pipeline
- On Devopness, navigate to a project then select an environment
- Find the
Applications
card - Click
View
in theApplications
card to see a list of existingApplications
- In the list of applications, find the application with the pipeline you want to manage and click the
NAME
of the application - Click the
Pipelines
tab - In the list of pipelines, find the pipeline you want to manage and click the
NAME
of the pipelineIf you haven't created a pipeline yet, follow the Add a 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 an Incoming Webhook guide
- Once your web hook is created, copy the hook's unique URL (
url
field) - Take note of the hook's secret signature key (
secret
field)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
View
in theApplications
card to see a list of existingApplications
- In the list of applications, find the application you triggered the pipeline and click the
NAME
of the application - On the upper-right corner click
DEPLOYMENTS
- Click
LOGS
on the action triggered by incoming hookIn
START TIME
column, 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