supporting non-swarm mode

This commit is contained in:
2025-09-07 12:11:15 +02:00
parent 3ed40c05e6
commit 5317848646
4 changed files with 163 additions and 3 deletions

17
deploy-swarm.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
if [ "$1" == "" ] ; then
printf "\nNisi zadao verziju Docker image-a koji treba deployati"
printf "\n\nSintaksa:\n\n deploy.sh 1.0.0\n\n"
exit 1
fi
printf "\nBUILD START ...\n\n"
IMAGE_VERSION=$1
echo "Deploying $STACK_NAME with image version: $IMAGE_VERSION"
# Pass IMAGE_VERSION env var for compose variable substitution
IMAGE_VERSION="$IMAGE_VERSION" docker stack deploy \
-c docker-compose-deploy.yml \
utility-bills-tracker