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() {
|
function build_all() {
|
||||||
mkdir -pv "${ARCHIVE_BUILD_FOLDER}"
|
mkdir -pv "${ARCHIVE_BUILD_FOLDER}"
|
||||||
for tag in $@; do
|
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
|
name="portainer"; if [ "$(echo "$tag" | cut -c1)" = "w" ]; then name="${name}.exe"; fi
|
||||||
mv dist/portainer-$tag* dist/$name
|
mv dist/portainer-$tag* dist/$name
|
||||||
if [ `echo $tag | cut -d \- -f 1` == 'linux' ]; then build_and_push_images "$tag"; fi
|
if [ `echo $tag | cut -d \- -f 1` == 'linux' ]; then build_and_push_images "$tag"; fi
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"grunt": "grunt",
|
||||||
"dev": "yarn grunt run-dev",
|
"dev": "yarn grunt run-dev",
|
||||||
"clean-all": "yarn grunt clean:all",
|
"clean-all": "yarn grunt clean:all",
|
||||||
"build": "yarn grunt build",
|
"build": "yarn grunt build",
|
||||||
|
|
Loading…
Reference in New Issue