features/test/git-lfs/scenarios.json
Josh Spicer 2952d87f1d
add a postCreateCommand to git-lfs Feature (#511)
* add a postCreateCommand to git-lfs Feature

* debug passing locally but not in CI

* update scenario

* add GIT_LFS_SKIP_SMUDGE=1 to prevent fetching lfs arifacts in github actions

* arguments should be booleans

* move example repo to devcontainers org

* place script literally anywhere other than /tmp
2023-04-04 06:47:04 -07:00

22 lines
874 B
JSON

{
"autoPullEnabled": {
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"initializeCommand": "(GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/devcontainers/git-lfs-example /tmp/testRepo-1 || true) && (cp -r /tmp/testRepo-1/.git* . && cp -r /tmp/testRepo-1/* .)",
"remoteUser": "vscode",
"features": {
"git-lfs": {
"autoPull": true
}
}
},
"autoPullDisabled": {
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"initializeCommand": "(GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/devcontainers/git-lfs-example /tmp/testRepo-2 || true) && (cp -r /tmp/testRepo-2/.git* . && cp -r /tmp/testRepo-2/* .)",
"remoteUser": "vscode",
"features": {
"git-lfs": {
"autoPull": false
}
}
}
}