lock yarn dependency

This commit is contained in:
Mike Greiling 2017-09-15 14:13:20 -05:00
parent 4e61528ad5
commit 5d6075b475
4 changed files with 16 additions and 5 deletions

View file

@ -64,6 +64,14 @@ function print_node_args() {
printf -- "--build-arg NODE_VERSION=%s " "$NODE_VERSION"
}
function print_yarn_args() {
case "$1" in
1.0) YARN_VERSION=1.0.2-1 ;;
*) echo "Unknown yarn version $1"; exit 1;
esac
printf -- "--build-arg YARN_VERSION=%s " "$YARN_VERSION"
}
function print_postgres_args() {
printf -- "--build-arg POSTGRES_VERSION=%s " "$1"
}
@ -82,6 +90,7 @@ function parse_arguments() {
git) print_git_args $version ;;
phantomjs) print_phantomjs_args $version ;;
node) print_node_args $version ;;
yarn) print_yarn_args $version ;;
postgresql) print_postgres_args $version ;;
*) exit 1;;
esac