-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
3nprob
committed
Mar 11, 2021
1 parent
6486345
commit 22179ea
Showing
8 changed files
with
10 additions
and
328 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
#!/bin/bash | ||
|
||
LATEST="8.1.0" | ||
TIGASE_DOCKER_IMAGE="${TIGASE_DOCKER_IMAGE:-tigase/tigase-xmpp-server}" | ||
LATEST="8.1.1" | ||
|
||
for version in nightly 8.0.0 8.1.0 ; do | ||
for release in 8.1.1-b10861-dist-max 8.1.0-b10857-dist-max 8.0.0-b10083-dist-max; do | ||
version=$(echo $release | cut -d'-' -f1) | ||
major=$(echo $version | cut -d'.' -f1) | ||
echo "Building: ${version}" | ||
# docker build -t tigase/tigase-xmpp-server:${version} -f ${version}/Dockerfile --no-cache ${version}/ | ||
# docker push tigase/tigase-xmpp-server:${version} | ||
docker build -t ${TIGASE_DOCKER_IMAGE}:${version} -f ./${major}/Dockerfile --build-arg TIGASE_VERSION=${version} --build-arg TIGASE_RELEASE=${release} --no-cache ./${major} | ||
docker push ${TIGASE_DOCKER_IMAGE}:${version} | ||
if [[ "${LATEST}" == "${version}" ]] ; then | ||
echo "Pushing ${version} as latest" | ||
docker tag tigase/tigase-xmpp-server:${version} tigase/tigase-xmpp-server:latest | ||
docker push tigase/tigase-xmpp-server:latest | ||
docker tag ${TIGASE_DOCKER_IMAGE}:${version} ${TIGASE_DOCKER_IMAGE}:latest | ||
docker push ${TIGASE_DOCKER_IMAGE}:latest | ||
fi | ||
done | ||
done |