Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

docs: add guide for CI/CD template testing#15528

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

Merged
matifali merged 8 commits intomainfromatif/test-templates
Nov 20, 2024
Merged

Conversation

matifali
Copy link
Member

Introduce a new tutorial outlining the process for testing and publishing
Coder templates within a CI/CD pipeline using GitHub Actions. This guide
includes prerequisites, a comprehensive workflow example, and detailed
steps for template validation and deployment.

Closes#9899

Introduce a new tutorial outlining the process for testing and publishingCoder templates within a CI/CD pipeline using GitHub Actions. This guideincludes prerequisites, a comprehensive workflow example, and detailedsteps for template validation and deployment.
Add a new entry in the documentation's manifest for a tutorial on testingand publishing Coder templates in a CI/CD pipeline.
Comment on lines 96 to 98
- name: Create a test workspace
run: |
coder create -t $TEMPLATE_NAME --template-version ${{ steps.name.outputs.version_name }} --yes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Can we also show how to test if specific conditions work inside the template (e.g.make build) or something? Like how to run example commands and ensure they run properly? Thecoder exp scaletest command may be useful for this.

ethanndickson and matifali reacted with thumbs up emoji
Copy link
MemberAuthor

@matifalimatifaliNov 18, 2024
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

coder ssh <workspace> does not let us run the command, andcoder exp scale test doesn't let you use a template not set as active.
Another approach could be to usecoder config-ssh along withssh coder.<workspace-name> -- <command to run>.

Copy link
Member

@bpmctbpmct left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Would love@jatcod3r's review as this was something we were discussing lately. We could add this to our demo env

jatcod3r reacted with thumbs up emoji
Add SSH configuration and example commands to test the workspace creation using the new template version. This ensures the template functions as expected before promotion.
@bpmctbpmct requested review fromEdwardAngert and removed request forEdwardAngert andethanndicksonNovember 18, 2024 16:56
@bpmct
Copy link
Member

@jatcod3r Can you be the approver for this PR?

jatcod3r reacted with thumbs up emoji

matifaliand others added2 commitsNovember 19, 2024 15:40
Co-authored-by: Edward Angert <EdwardAngert@users.noreply.github.com>
Copy link
Contributor

@EdwardAngertEdwardAngert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

🚀

jatcod3r reacted with hooray emojimatifali reacted with heart emoji
Clarified CLI installation instructions for pushing template versionsand linked to the GitHub Actions setup-coder for automation. Removedredundant setup-action note and added details on creating a headlessuser for CI workflows.
@matifalimatifali merged commitdcbcf67 intomainNov 20, 2024
25 checks passed
@matifalimatifali deleted the atif/test-templates branchNovember 20, 2024 18:58
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@bpmctbpmctbpmct left review comments

@jatcod3rjatcod3rjatcod3r approved these changes

@EdwardAngertEdwardAngertEdwardAngert approved these changes

Assignees

@matifalimatifali

Labels
docsArea: coder.com/docs
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Add helper script to test a template works after publish
4 participants
@matifali@bpmct@EdwardAngert@jatcod3r

[8]ページ先頭

©2009-2025 Movatter.jp