Skip to content

Commit

Permalink
Generalize Dockerfile, add 8.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
3nprob committed Mar 11, 2021
1 parent 6486345 commit 22179ea
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 328 deletions.
41 changes: 0 additions & 41 deletions 8.0.0/Dockerfile

This file was deleted.

12 changes: 0 additions & 12 deletions 8.1.0/scripts/start.sh

This file was deleted.

268 changes: 0 additions & 268 deletions 8.1.0/scripts/tigase.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 10 additions & 7 deletions build-all.sh
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

0 comments on commit 22179ea

Please sign in to comment.