forked from spark-notebook/spark-notebook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
executable file
·57 lines (40 loc) · 843 Bytes
/
deploy.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
function zips() {
V=$1
echo "building zips"
sbt -Dscala.version=$V distZips
echo "deploying zips"
~/opt/s3cmd-master/s3cmd put -P target/universal/*zip s3://spark-notebook/zip/
echo "purging zips"
sbt -Dscala.version=$V clean
}
function debs() {
V=$1
echo "building debs"
sbt -Dscala.version=$V distDebs
echo "deploying debs"
~/opt/s3cmd-master/s3cmd put -P target/*deb s3://spark-notebook/deb/
echo "purging debs"
sbt -Dscala.version=$V clean
}
function dockers() {
V=$1
echo "deploying docker"
sbt -Dscala.version=$V dockerPublishAll
echo "purging debs"
sbt -Dscala.version=$V clean
}
function all() {
V=$1
zips $V
debs $V
dockers $V
}
function main() {
echo "Scala 2.10"
all "2.10.4"
echo "===================="
echo "Scala 2.11"
all "2.11.2"
}
main