Skip to content

Commit

Permalink
chore: update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev committed Aug 11, 2020
1 parent b86f421 commit 1379e44
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@

set -e

IMAGE_NAME=avo-dev
WORKSPACE_DIR=$1 BUMP=${1:-'patch'}
TAG=$2
OS=$(node -r os -e 'console.log(os.platform())')

cd $WORKSPACE_DIR

docker build -t $IMAGE_NAME -f docker/Dockerfile .

CID=$(docker create $IMAGE_NAME)

docker cp ${CID}:/avo/pkg/. $WORKSPACE_DIR/pkg
docker rm ${CID}
rm -rf public/avo-packs
bin/webpack
gem build avo --output pkg/avo.gem

0 comments on commit 1379e44

Please sign in to comment.