-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Is there a way to trigger the GitHub Git: Clone action on initial startup? #3549
-
I'm using the docker container. The startup script does a git clone... However, I have a private repo so that doesn't work unless I create some .ssh certs and load them into the container... Which is OK but them I'm storying those creds in my registry... Since VSCode/code-server has the git: clone feature, I was wondering if there is some sort of startup script where I could cause code-server to trigger this action, ideally with a preconfigured github project and local path?
Beta Was this translation helpful? Give feedback.
All reactions
🤔 I'm not sure if that's possible. @bpmct or @code-asher might know though
Replies: 1 comment 1 reply
-
🤔 I'm not sure if that's possible. @bpmct or @code-asher might know though
Beta Was this translation helpful? Give feedback.
All reactions
-
This can be done with tasks and the AutoLaunch extension, someone just pointed this out to me the other day:
Task:
{
"label": "clone",
"type": "shell",
"command": "cd /home/coder/project && git clone $GIT_REPO .",
"group": "build",
"presentation": {
"reveal": "always"
},
"problemMatcher": [],
"options": {
"statusbar": {
"label": "$(clone) Clone"
}
}
}
Beta Was this translation helpful? Give feedback.
All reactions
-
🎉 2 -
🚀 3