-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sh
More file actions
31 lines (30 loc) · 781 Bytes
/
build.sh
File metadata and controls
31 lines (30 loc) · 781 Bytes
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
#!/usr/bin/env bash
echo "creating base image jamedina/openwhisk-kotlin-native"
docker build -t jamedina/openwhisk-kotlin-native docker/
if [ "$?" -eq "0" ]
then
echo "pushing jamedina/openwhisk-kotlin-native"
docker push jamedina/openwhisk-kotlin-native
if [ "$?" -eq "0" ]
then
echo "creating image jamedina/kotlin-native-fibonacci"
docker build -t jamedina/kotlin-native-fibonacci .
if [ "$?" -eq "0" ]
then
echo "pushing"
docker push jamedina/kotlin-native-fibonacci
if [ "$?" -eq "0" ]
then
echo "done"
else
echo "fail to push fibonacci docker"
fi
else
echo "fail to build fibonacci docker"
fi
else
echo "fail to push base docker"
fi
else
echo "fail to build base docker"
fi