# Continuous Deployment

### How it works?

After the CI/CD pipeline builds and pushes the image to a container registry, the pipeline triggers the deployment on the platform. The platform automatically signals to the agent that it should pull and start the image with the tag that already exists on the node.

<figure><img src="/files/9a4IpymRS3kjCU5Qnq4s" alt=""><figcaption></figcaption></figure>

### Generate CD token

**Step 1.** [**Create**](/tutorials/create-your-product.md) a versioned project.

**Step 2.** Add a rolling version to the project.

**Step 3.** Add images to the version.

**Step 4.** [**Add**](/tutorials/deploy-your-product.md) a deployment to the version.

**Step 5.** Click *Create* in the Deployment token card.

<figure><img src="/files/ngy6uGEjHXtUopBSoeUi" alt=""><figcaption></figcaption></figure>

**Step 6.** Enter a name for your deployment token and set its expiration time, then click *Create*. You'll need to generate a new one when the token expires.

<figure><img src="/files/dDUrISXiUk6iJpMcox3Y" alt=""><figcaption></figcaption></figure>

**Step 7.** Save the token somewhere secure as you won't be able to retrieve it later. Click *Close* when you're done.

<figure><img src="/files/JeuErpcUV9nxonHkMUD9" alt=""><figcaption></figcaption></figure>

**Step 8.** Paste the curl command into the pipeline.

{% hint style="danger" %}
**Never store your token in your git repository. Use pipeline secrets instead.**
{% endhint %}

#### How to revoke token?

You can revoke the token by clicking on the *Revoke token* button in the *Deployment token* card.

<figure><img src="/files/F0UcTp48Zj7SvNjmmWXg" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dyrector.io/features/continuous-deployment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
