Skip to content

Commit 95dc267

Browse files
committed
Add helper script for deployments.
1 parent b70d4ea commit 95dc267

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

scripts/loraserver-prepare-deploy

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
4+
do_deploy() {
5+
SRC_DIR=/build/tmp/$2/$3-glibc/deploy/$1
6+
DEPLOY_DIR=/lora-gateway-os/deploy/$2/$3/$1
7+
8+
mkdir -p $DEPLOY_DIR
9+
10+
cp $SRC_DIR/images/*.gz $DEPLOY_DIR
11+
cp -R $SRC_DIR/licenses $DEPLOY_DIR
12+
}
13+
14+
15+
VERSION="2.0.0test1"
16+
17+
do_deploy $VERSION "raspberrypi" "raspberrypi3"
18+
do_deploy $VERSION "wifx" "sama5d4-lorix-one-sd"
19+
do_deploy $VERSION "wifx" "sama5d4-lorix-one-512-sd"

0 commit comments

Comments
 (0)