2020-02-18 04:22:12 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
main() {
|
|
|
|
cd "$(dirname "$0")/../.."
|
2020-02-18 18:06:18 +00:00
|
|
|
|
|
|
|
docker build ci/image
|
2020-02-18 04:22:12 +00:00
|
|
|
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" "$*"
|
2020-02-18 04:22:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
main "$@"
|