chore(devcontainer): update image tag to main in devcontainer configuration
All checks were successful
CI/CD Pipeline / playwright (push) Successful in 1m34s
CI/CD Pipeline / build-and-deploy (push) Successful in 1m58s

This commit is contained in:
Yanhao
2025-11-18 10:48:41 +08:00
parent 5610d3ea20
commit aa851bb920

View File

@@ -1,5 +1,5 @@
{ {
"image": "ghcr.io/yanhao98/h-devcontainer:oncreatecommand.d", "image": "ghcr.io/yanhao98/h-devcontainer:main",
"runArgs": ["--name=${localWorkspaceFolderBasename}-devcontainer"], "runArgs": ["--name=${localWorkspaceFolderBasename}-devcontainer"],
"forwardPorts": [4730, 4731], // vscode://settings/remote.localPortHost -> 默认只监听 localhost "forwardPorts": [4730, 4731], // vscode://settings/remote.localPortHost -> 默认只监听 localhost
"portsAttributes": { "portsAttributes": {
@@ -131,7 +131,7 @@
8. VS Code 8. VS Code
9. postAttachCommand () 9. postAttachCommand ()
*/ */
"initializeCommand": "echo '↘️ 准备创建容器...'; docker pull ghcr.io/yanhao98/h-devcontainer:oncreatecommand.d;", "initializeCommand": "echo '↘️ 准备创建容器...'; docker pull ghcr.io/yanhao98/h-devcontainer:main;",
"onCreateCommand": "echo '↘️ 容器首次创建!'; /usr/local/bin/onCreateCommand.sh", "onCreateCommand": "echo '↘️ 容器首次创建!'; /usr/local/bin/onCreateCommand.sh",
"updateContentCommand": "echo '↘️ 容器内容已更新!'; zsh -c 'time pnpm install;'", "updateContentCommand": "echo '↘️ 容器内容已更新!'; zsh -c 'time pnpm install;'",
"postCreateCommand": "echo '↘️ 容器已创建!';", "postCreateCommand": "echo '↘️ 容器已创建!';",