Tutorial
Configure CI/CD testing workflow
Make your deploy pipeline ask Zof before it ships. The deploy gate is switched on for a company on request. Once it is on, you add one token, one secret and one step to your deploy job.
Overview
Make your deploy pipeline ask Zof before it ships. The deploy gate is switched on for a company on request. Once it is on, you add one token, one secret and one step to your deploy job.
Tutorial details
- Audience
- DevOps engineer
- Duration
- About 10 minutes
- Prerequisites
- You are a company admin
- Prerequisite 2
- Your GitHub repository is connected to Zof
- Prerequisite 3
- The deploy gate is switched on for your company, on request
Tutorial steps
Check the gate is on
If Settings › Pipeline tokens isn’t in your settings menu, the gate isn’t 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), choose Where it can deploy, and click Create. Click Copy now: Zof shows the token only once.
Store it as a secret
Save the token as a secret named ZOF_GATE_TOKEN in your CI.
Add the gate step
Add the gate step to your deploy job, before the deploy itself. The step passes only when Zof allows this commit to this environment.
Run the deploy job
Run the job on a commit from a pull request Zof checked. The step’s log starts with "Zof gate:" and ends with Zof’s answer and a link to the change. If Zof can’t answer, the step fails and the deploy stops.
Expected outcome
The deploy job asks Zof before each deploy, and the token's Last used in Settings › Pipeline tokens shows when it was used and for which repository.
Continue learning
Was this page helpful?