Skip to content

docs: clarify how to set max token life in ci/cd docs #6416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 2, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
docs: clarify max token life in ci/cd docs
  • Loading branch information
matifali authored Mar 2, 2023
commit 21e871b7ba75a6b107fba2f354946a31a33ebc8e
5 changes: 4 additions & 1 deletion docs/templates/change-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ export CODER_TEMPLATE_NAME=kubernetes
export CODER_TEMPLATE_DIR=.coder/templates/kubernetes
export CODER_TEMPLATE_VERSION=$(git rev-parse --short HEAD)

# Push the new template template version to Coder
# Push the new template version to Coder
coder templates push --yes $CODER_TEMPLATE_NAME \
--directory $CODER_TEMPLATE_DIR \
--name=$CODER_TEMPLATE_VERSION # Version name is optional
```

> Looking for an example? See how we push our development image
> and template [via GitHub actions](https://github.com/coder/coder/blob/main/.github/workflows/dogfood.yaml).

> You need to set `CODER_MAX_TOKEN_LIFETIME` to a higher value on your coder server to allow creating tokens with a more than 1 month life.
>, e.g., for a system install, you can set `CODER_MAX_TOKEN_LIFETIME=8760h0m0s` in `/etc/coder/coder.env` to allow max token life of 1 year.