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