forked from islamic-network/alquran.cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
21 lines (17 loc) · 816 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
## Release tag / version. If this is not for a specific release, please set this to latest, otherwise set it to a specific release.
version=3
###########################################################################################
#UNLESS YOU WANT TO CHANGE SOMETHING TO DO WITH THE PUSH TO NEXUS, LEAVE THE BELOW ALONE #
###########################################################################################
## The URL of the repo. Do not change unless you're sure about this.
prod=vesica/alquran.cloud
## The actual script to build and push the image
echo "Building production image"
docker build -f Dockerfile . -t $prod:$version
docker push $prod:$version
if [ "$version" != "latest" ]
then
docker build -f Dockerfile . -t $prod:latest
docker push $prod:latest
fi