chore: update lifecycle scripts paths in devcontainer configuration
CI/CD Pipeline / playwright (push) Successful in 2m17s
CI/CD Pipeline / build-and-deploy (push) Successful in 1m50s
测试最新依赖 / playwright (push) Failing after 47s
测试最新依赖 / build-and-test (push) Failing after 1m48s

This commit is contained in:
严浩
2026-03-28 18:07:32 +08:00
parent a4f0f90e90
commit 1ae6bc1128
2 changed files with 12 additions and 13 deletions
+7 -8
View File
@@ -26,14 +26,13 @@
}
},
"mounts": [
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume",
"source=${localWorkspaceFolder}/.devcontainer/lifecycle-scripts.d,target=/usr/local/etc/lifecycle-scripts.d,type=bind,consistency=delegated"
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume"
],
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind,consistency=delegated",
"initializeCommand": "docker pull ghcr.io/yanhao98/h-devcontainer:main;",
"onCreateCommand": "/usr/local/bin/run-lifecycle-scripts.sh onCreateCommand",
"updateContentCommand": "/usr/local/bin/run-lifecycle-scripts.sh updateContentCommand",
"postCreateCommand": "/usr/local/bin/run-lifecycle-scripts.sh postCreateCommand",
"postStartCommand": "/usr/local/bin/run-lifecycle-scripts.sh postStartCommand",
"postAttachCommand": "/usr/local/bin/run-lifecycle-scripts.sh postAttachCommand"
// "initializeCommand": "docker pull ghcr.io/yanhao98/h-devcontainer:main;",
"onCreateCommand": "/devcontainer/run-lifecycle-scripts.sh onCreateCommand",
"updateContentCommand": "/devcontainer/run-lifecycle-scripts.sh updateContentCommand",
"postCreateCommand": "/devcontainer/run-lifecycle-scripts.sh postCreateCommand",
"postStartCommand": "/devcontainer/run-lifecycle-scripts.sh postStartCommand",
"postAttachCommand": "/devcontainer/run-lifecycle-scripts.sh postAttachCommand"
}