mirror of
https://github.com/danog/code-server.git
synced 2024-12-15 18:57:11 +01:00
12 lines
272 B
Bash
12 lines
272 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -euo pipefail
|
||
|
|
||
|
main() {
|
||
|
cd "$(dirname "$0")/../.."
|
||
|
imageTag="$(docker build -q ci/image)"
|
||
|
docker run -t --rm -e CI -e GITHUB_TOKEN -v "$(yarn cache dir):/usr/local/share/.cache/yarn/v6" -v "$PWD:/repo" -w /repo "$imageTag" "$*"
|
||
|
}
|
||
|
|
||
|
main "$@"
|