Skip to content

How-to Guide

CI/CD integration

Zof works with GitHub repositories today, and with GitLab on request. On request, a deploy gate runs in GitHub Actions, Jenkins, CircleCI, Azure DevOps or any CI that runs containers or Node.

Objective

Make your deploy pipeline ask Zof before it ships, with the CI/CD release gate.

Prerequisites

  • You are a company admin
  • Your GitHub repository is connected to Zof
  • The gate is turned on for your company, on request

Procedure

Check the gate is on

The deploy gate is available on request. If Settings › Pipeline tokens is not in your settings menu, it is not on yet: ask us at support@zofai.com.

Create a pipeline token

In Settings › Pipeline tokens, click Create token. Enter a Name, choose when it Expires in (7, 30 or 90 days) and, under Where it can deploy, the environments. Click Create.

Click Copy now: Zof shows the token only once.

Save it as a CI secret

Save the token as a secret named ZOF_GATE_TOKEN in your CI. Never paste the token into a pipeline file.

Add the gate step

Add the gate step to your deploy job, before the deploy itself. For a guided setup, open Add Zof to your deploy pipeline from Setup.

Run your deploy job

Run it on a commit from a pull request Zof checked. The step passes only when Zof allows the deploy; if Zof cannot answer, the step fails and the deploy stops.

Expected result

The gate step's log starts with Zof gate: and ends with Zof's answer and a link to the change. The token's Last used shows when it was used. Setup takes about 10 minutes.

Was this page helpful?