Skip to content

Commit

Permalink
Document the OKTETO_IS_PREVIEW_ENVIRONMENT environment variable (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
rberrelleza authored Apr 17, 2024
1 parent 0e0e9cf commit eb79481
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/content/core/okteto-variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ These are automatically expanded and can be referenced in your Okteto manifest
- **`OKTETO_USERNAME`**: Your username in Okteto.
- **`OKTETO_REGISTRY_URL`**: The URL of the Okteto Registry.
- **`OKTETO_GIT_BRANCH`**: The name of the Git branch being deployed.
- **`OKTETO_GIT_COMMIT`**: The SHA1 hash of the last commit of the branch.
- **`OKTETO_GIT_COMMIT`**: The SHA1 hash of the last commit of the branch
- **`OKTETO_IS_PREVIEW_ENVIRONMENT`**: Set to `true` when the environment is [a preview environment](previews/index.mdx).

### **Built-in Environment Variables for Images in Okteto Registry**

Expand Down
1 change: 1 addition & 0 deletions versioned_docs/version-1.19/core/okteto-variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ These are automatically expanded and can be referenced in your Okteto manifest
- **`OKTETO_REGISTRY_URL`**: The URL of the Okteto Registry.
- **`OKTETO_GIT_BRANCH`**: The name of the Git branch being deployed.
- **`OKTETO_GIT_COMMIT`**: The SHA1 hash of the last commit of the branch.
- **`OKTETO_IS_PREVIEW_ENVIRONMENT`**: Set to `true` when the environment is [a preview environment](previews/index.mdx).

### **Built-in Environment Variables for Images in Okteto Registry**

Expand Down

0 comments on commit eb79481

Please sign in to comment.