- Notifications
You must be signed in to change notification settings - Fork928
docs: API tokens & CI automation#4510
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
We recommend source controlling your templates as you would other code. [Install Coder](../install/) in CI/CD pipelines to push new template versions. | ||
```sh | ||
# Install the Coder CLI | ||
curl -L https://coder.com/install.sh | sh | ||
# curl -L https://coder.com/install.sh | sh -s -- --version=0.x | ||
# To create API tokens, use `coder tokens create`. | ||
# These variables are consumed by Coder | ||
export CODER_URL=https://coder.example.com | ||
export CODER_SESSION_TOKEN=***** | ||
# Template details | ||
export CODER_TEMPLATE_NAME=kubernetes | ||
export CODER_TEMPLATE_DIR=.coder/templates/kubernetes | ||
export CODER_TEMPLATE_VERSION=$(git rev-parse --short HEAD) | ||
coder templates push --yes $CODER_TEMPLATE_NAME \ | ||
--directory $CODER_TEMPLATE_DIR \ | ||
--name=$CODER_TEMPLATE_VERSION # Version name is optional | ||
``` |
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.
I'm really bought into this being the way we suggest customers manage these - at least until we hear feedback otherwise.
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.
Good docs, nice work
Closes#4409