Update azure devops setup instructions

This commit is contained in:
Ethan Dennis
2022-08-23 15:22:48 -07:00
parent 0b691536d4
commit 3e863042a1
6 changed files with 57 additions and 407 deletions
+3 -5
View File
@@ -1,6 +1,5 @@
{
"name": "Codespace to bootstrap valet in a Codespace",
//Use base codespace image then pull Valet on postCreateCommand,
"name": "Codespace to perform Valet Labs",
"image": "mcr.microsoft.com/vscode/devcontainers/universal:linux",
"remoteUser": "codespace",
"overrideCommand": false,
@@ -15,8 +14,7 @@
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-azuretools.vscode-docker",
"ms-azuretools.vscode-docker"
],
"onCreateCommand": 'echo "export GITHUB_ACCESS_TOKEN=$VALET_GHCR_PASSWORD" >> ~/.bashrc',
"postCreateCommand": "sudo bash .devcontainer/setupcodespace.sh ${VALET_GHCR_PASSWORD} ${AZURE_DEVOPS_PROJECT} ${AZURE_DEVOPS_ORGANIZATION} ${AZURE_DEVOPS_ACCESS_TOKEN} ${GITHUB_USER} 'https://github.com/' && gh extension install github/gh-valet || echo 'Could not auto-build. Skipping.' "
"postCreateCommand": "gh extension install github/gh-valet || echo 'Could not auto-build. Skipping.' "
}