1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-29 05:35:25 +00:00
code-server-2/ci/image/run.sh

14 lines
311 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
main() {
cd "$(dirname "$0")/../.."
2020-02-18 18:06:18 +00:00
docker build ci/image
imageTag="$(docker build -q ci/image)"
2020-02-18 21:34:28 +00:00
docker run -t --rm -e CI -e GITHUB_TOKEN -e TRAVIS_TAG -v "$(yarn cache dir):/usr/local/share/.cache/yarn/v6" -v "$PWD:/repo" -w /repo "$imageTag" "$*"
}
main "$@"