-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] - Move Dagster+ reserved env vars to dedicated reference (#21484)
## Summary & Motivation This PR moves the built-in/reserved env vars to a dedicated reference page. We've had some feedback that these were difficult to find, even in search. This makes the content visible in the sidenav; additionally, the now H1-level heading should improve search results. <img width="1505" alt="Screenshot 2024-04-29 at 12 17 13 PM" src="https://github.com/dagster-io/dagster/assets/16615212/c9b57619-626b-4c29-95a6-0603517208ae"> ## How I Tested These Changes eyes, local --------- Co-authored-by: Colton Padden <[email protected]>
- Loading branch information
1 parent
219ed91
commit ecf9367
Showing
8 changed files
with
105 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
docs/content/dagster-plus/managing-deployments/reserved-environment-variables.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
--- | ||
title: "Reserved Dagster+ environment variables | Dagster Docs" | ||
--- | ||
|
||
# Reserved Dagster+ environment variables | ||
|
||
[Dagster+](/dagster-plus) provides a set of built-in, automatically populated environment variables, such as the name of a deployment or details about a branch deployment commit, that can be used to modify behavior based on environment. | ||
|
||
--- | ||
|
||
## Reserved deployment variables | ||
|
||
The following variables are available in every deployment of your Dagster+ instance, including full (e.g., `prod`) and branch deployments. | ||
|
||
<ReferenceTable> | ||
<ReferenceTableItem propertyName="DAGSTER_CLOUD_DEPLOYMENT_NAME"> | ||
The name of the Dagster+ deployment. For example, <code>prod</code>. | ||
</ReferenceTableItem> | ||
<ReferenceTableItem propertyName="DAGSTER_CLOUD_IS_BRANCH_DEPLOYMENT"> | ||
If <code>1</code>, the deployment is a{" "} | ||
<a href="/dagster-plus/managing-deployments/branch-deployments"> | ||
branch deployment | ||
</a> | ||
. Refer to the <a href="#reserved-branch-deployment-variables"> | ||
Branch Deployment variables section | ||
</a> for a list of variables available in branch deployments. | ||
</ReferenceTableItem> | ||
</ReferenceTable> | ||
|
||
--- | ||
|
||
## Reserved Branch Deployment variables | ||
|
||
The following environment variables are currently available only in a [branch deployment](/dagster-plus/managing-deployments/branch-deployments). | ||
|
||
For every commit made to a branch, the following metadata is available: | ||
|
||
<ReferenceTable> | ||
<ReferenceTableItem propertyName="DAGSTER_CLOUD_GIT_SHA"> | ||
The SHA of the commit. | ||
</ReferenceTableItem> | ||
<ReferenceTableItem propertyName="DAGSTER_CLOUD_GIT_TIMESTAMP"> | ||
The time the commit occurred. | ||
</ReferenceTableItem> | ||
<ReferenceTableItem propertyName="DAGSTER_CLOUD_GIT_AUTHOR_EMAIL"> | ||
The email of the git user who authored the commit. | ||
</ReferenceTableItem> | ||
<ReferenceTableItem propertyName="DAGSTER_CLOUD_GIT_AUTHOR_NAME"> | ||
The name of the git user who authored the commit. | ||
</ReferenceTableItem> | ||
<ReferenceTableItem propertyName="DAGSTER_CLOUD_GIT_MESSAGE"> | ||
The message associated with the commit. | ||
</ReferenceTableItem> | ||
<ReferenceTableItem propertyName="DAGSTER_CLOUD_GIT_BRANCH"> | ||
The name of the branch associated with the commit. | ||
</ReferenceTableItem> | ||
<ReferenceTableItem propertyName="DAGSTER_CLOUD_GIT_REPO"> | ||
The name of the repository associated with the commit. | ||
</ReferenceTableItem> | ||
<ReferenceTableItem propertyName="DAGSTER_CLOUD_PULL_REQUEST_ID"> | ||
The ID of the pull request associated with the commit. | ||
</ReferenceTableItem> | ||
<ReferenceTableItem propertyName="DAGSTER_CLOUD_PULL_REQUEST_STATUS"> | ||
The status of the pull request at the time of the commit. Possible values | ||
are <code>OPEN</code>, <code>CLOSED</code>, and <code>MERGED</code>. | ||
</ReferenceTableItem> | ||
</ReferenceTable> | ||
|
||
--- | ||
|
||
## Related | ||
|
||
<ArticleList> | ||
<ArticleListItem | ||
title="Dagster+ environment variables and secrets" | ||
href="/dagster-plus/managing-deployments/environment-variables-and-secrets" | ||
></ArticleListItem> | ||
<ArticleListItem | ||
title="Setting environment variables for Hybrid agents" | ||
href="/dagster-plus/managing-deployments/setting-environment-variables-agents" | ||
></ArticleListItem> | ||
<ArticleListItem | ||
title="Managing Dagster+ deployments" | ||
href="/dagster-plus/managing-deployments" | ||
></ArticleListItem> | ||
</ArticleList> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ecf9367
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for dagster-docs ready!
✅ Preview
https://dagster-docs-1nyjmmbwu-elementl.vercel.app
https://master.dagster.dagster-docs.io
Built with commit ecf9367.
This pull request is being automatically deployed with vercel-action