react-navigation/scripts/deploy-website.sh
2017-10-20 14:54:25 -07:00

18 lines
342 B
Bash
Executable File

#!/bin/sh
# abort the script if there is a non-zero error
set -e
# show where we are on the machine
pwd
cd website
npm run build
cd build
docker login -e $HEROKU_LOGIN -u $HEROKU_LOGIN -p $HEROKU_API_KEY registry.heroku.com
docker build . -t registry.heroku.com/react-navigation/web
docker push registry.heroku.com/react-navigation/web