mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 05:15:25 +02:00
chore(build): add a build script to archive binary
This commit is contained in:
parent
fde0d3ea9f
commit
8f7f4acc0d
1 changed files with 16 additions and 0 deletions
16
build.sh
Executable file
16
build.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
VERSION=$1
|
||||||
|
|
||||||
|
if [[ $# -ne 1 ]] ; then
|
||||||
|
echo "Usage: $(basename $0) <VERSION>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
grunt release
|
||||||
|
rm -rf /tmp/portainer-build && mkdir -pv /tmp/portainer-build/portainer
|
||||||
|
mv dist/* /tmp/portainer-build/portainer
|
||||||
|
cd /tmp/portainer-build
|
||||||
|
tar cvpfz portainer-${VERSION}.tar.gz portainer
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue