Skip to content

Commit dc8dd94

Browse files
MohsinHashmi-DataInnmohsin-wiserclaude
authored
fix: coder mount paths and npm ci improvements (#423)
* fix: remove unnecessary coder binary move step in deployment workflow * fix: clean node_modules before npm ci in post-create script Ensures npm ci succeeds by removing existing node_modules before installation. This prevents fallback to npm install and ensures reproducible, faster installations using package-lock.json. Changes: - Add rm -rf node_modules before root npm ci - Add rm -rf node_modules before frontend npm ci 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * fix: update coder mount paths to use isolated subdirectories and /root - Update all host paths to use isolated subdirectories per tool (e.g., claude/.claude, gemini/.gemini, ssh/.ssh) - Change all container paths from /home/vscode/ to /root/ - Update environment variables (HISTFILE, GIT_CONFIG_GLOBAL) to /root/ - Add direct mount for claude.json instead of symlink - Remove symlink creation from post-start.sh This ensures proper isolation and consistency for Coder workspaces. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * fix: use .claude.json (with dot) for host path consistency Match exact filename on both host and container paths. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * fix: use unique version names for coder template pushes Generate version names using timestamp and commit SHA to avoid duplicate version name errors in CI/CD pipeline. Format: v{YYYYMMDD-HHMMSS}-{commit-sha} Example: v20260101-143025-f642fb0 Also activates the new version automatically. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> --------- Co-authored-by: Mohsin Hashmi <mhashmi@wiser.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent c1756cf commit dc8dd94

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/coder-template-push.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,17 @@ jobs:
5252
CODER_URL: https://coder.dev.simpleaccounts.io
5353
CODER_SESSION_TOKEN: ${{ secrets.CODER_SESSION_TOKEN }}
5454
run: |
55-
# Push template to Coder
55+
# Push template to Coder with unique version name
56+
VERSION_NAME="v$(date +%Y%m%d-%H%M%S)-${GITHUB_SHA:0:7}"
57+
5658
coder templates push simpleaccounts-uae \
5759
--directory "." \
60+
--name "$VERSION_NAME" \
5861
--message "Automated deploy from commit ${{ github.sha }}" \
62+
--activate \
5963
--yes
6064
61-
echo "✅ Template pushed successfully"
65+
echo "✅ Template pushed successfully as version: $VERSION_NAME"
6266
6367
- name: Verify Template
6468
env:

0 commit comments

Comments
 (0)