forked from samtecspg/articulate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.sh
executable file
·29 lines (27 loc) · 887 Bytes
/
package.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
# Script to build release zip file that just comtains the
# docker-compose.yml (and supporting files) for a given
# github tag
#
# Its recommended that you use a version of this script
# that matches (or is close to matching) the tag/branch
# that you want to package
if [ -z "$1" ]
then
echo "$0: REQUIRED: Tag or branch you wish to package"
exit 1
fi
TMPDIR=`mktemp -d`
echo "$0: switching to $TMPDIR - script results can be found there"
cd $TMPDIR
git clone -b $1 https://github.com/samtecspg/articulate.git
BUILD="articulate-$1"
mkdir $BUILD
cp articulate/docker-compose.yml $BUILD
cp articulate/docker-compose.override.yml $BUILD
cp articulate/init-letsencrypt.sh $BUILD
cp -r articulate/compose $BUILD
cp -r articulate/local-storage $BUILD
rm $BUILD/local-storage/*/.gitignore
zip -9 -y -r $BUILD.zip $BUILD
echo "$0: Complete: go to $TMPDIR for results"