Skip to content

Commit

Permalink
added fix for npm install in core content for standalone builds
Browse files Browse the repository at this point in the history
  • Loading branch information
shukriadams committed May 13, 2021
1 parent 6931b3d commit cfa0a0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions build/build-standalone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
# fail on errors
set -e

ARCHITECTURE="" # set to "-arm" for arm
repo="shukriadams/arewedown"
BUILDCONTAINER=shukriadams/node12build:0.0.3$ARCHITECTURE

# capture all arguments passed in, that is anything starting with --
while [ $# -gt 0 ]; do
Expand Down Expand Up @@ -39,6 +41,9 @@ if [ -z "$TAG" ]; then
exit 1
fi

# npm install all the things
docker run -v $(pwd)/../src:/tmp/build $BUILDCONTAINER sh -c 'cd /tmp/build/ && yarn --no-bin-links --production'

# write version to build
echo $TAG > ./../src/version

Expand Down
2 changes: 0 additions & 2 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
set -e

# tag must be passed in as an argument when calling this script
ARCH=""
DOCKERPUSH=0

SMOKETEST=0
ARCHITECTURE="" # set to "-arm" for arm

Expand Down

0 comments on commit cfa0a0e

Please sign in to comment.