Merge pull request #1 from splynx/tune_for_proxy

Tune for API proxy
pull/7149/head
Oleksii Fedoryshyn 3 years ago committed by GitHub
commit ea085b757b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,32 @@
#!/bin/bash
if ! command -v jq &> /dev/null
then
echo "'jq' could not be found. Please install this utility"
exit
fi
if [ -z "$1" ]
then
echo "Version is required, command usage example: ./build.sh '<version>' <image name>"
exit
fi
if [ -z "$2" ]
then
echo "Package name is required, command usage example: ./build.sh '<version>' <image name>"
exit
fi
mv package.json pkg-temp.json
jq --arg vs "$1" -r '. + {dev:false, version:$vs}' pkg-temp.json > package.json
rm pkg-temp.json
cat package.json
docker build -f dev/build/Dockerfile -t "$2:$1" .
docker tag "$2:$1" "$2:latest"
docker push "$2:$1"
docker push "$2:latest"
git checkout package.json

@ -244,7 +244,7 @@ module.exports = {
builder.andWhere('isFolder', true)
break
case 'PAGES':
builder.andWhereNotNull('pageId')
builder.whereNotNull('pageId')
break
}
if (!args.parent || args.parent < 1) {

Loading…
Cancel
Save