mirror of https://github.com/portainer/portainer
chore(build): update build script and add grunt yarn script (#2276)
parent
313c8be997
commit
22450bbdeb
2
build.sh
2
build.sh
|
@ -24,7 +24,7 @@ function build_archive() {
|
|||
function build_all() {
|
||||
mkdir -pv "${ARCHIVE_BUILD_FOLDER}"
|
||||
for tag in $@; do
|
||||
grunt "release:`echo "$tag" | tr '-' ':'`"
|
||||
yarn grunt "release:`echo "$tag" | tr '-' ':'`"
|
||||
name="portainer"; if [ "$(echo "$tag" | cut -c1)" = "w" ]; then name="${name}.exe"; fi
|
||||
mv dist/portainer-$tag* dist/$name
|
||||
if [ `echo $tag | cut -d \- -f 1` == 'linux' ]; then build_and_push_images "$tag"; fi
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
}
|
||||
],
|
||||
"scripts": {
|
||||
"grunt": "grunt",
|
||||
"dev": "yarn grunt run-dev",
|
||||
"clean-all": "yarn grunt clean:all",
|
||||
"build": "yarn grunt build",
|
||||
|
|
Loading…
Reference in New Issue