Make each Coder template self-contained (fix coder templates push failure)
Provision Coder Templates / provision (push) Successful in 2m10s

coder templates push -d templates/<env> only uploads that directory to the
Coder server, so main.tf's file() references reaching outside it via
../../profile-templates and ../../scripts failed at push/apply time
("Invalid function argument ... this function works only with files that
are distributed as part of the configuration source code"). Confirmed via
an actual failed run of coder-templates.yml once the runner network fix let
it get that far.

Fix: duplicate profile.code-profile, cli-setup-wizard.sh, and
install-skills.sh into each templates/<env>/ directory and drop the old
shared scripts/ and profile-templates/ directories.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-23 16:52:12 +02:00
parent 5b32539d65
commit 22429aa4e3
26 changed files with 938 additions and 55 deletions
-2
View File
@@ -19,8 +19,6 @@ on:
branches: [main]
paths:
- "templates/**"
- "scripts/**"
- "profile-templates/**"
- ".gitea/workflows/coder-templates.yml"
workflow_dispatch: {}