dodane build i deploy skripte

This commit is contained in:
2024-03-23 01:42:59 +01:00
parent beb3424b16
commit 2bd1402ed0
3 changed files with 21 additions and 4 deletions

15
build.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
if [ "$1" == "" ] ; then
printf "\nNisi zadao verziju Docker image-a koji treba buildati"
printf "\n\nSintaksa:\n\n build-prod-img.sh 1.0.0\n\n"
exit 1
fi
printf "\nBUILD START ...\n\n"
IMAGE_VERSION=$1
docker build . -t utility-bills-tracker:$IMAGE_VERSION
printf "\nBUILD DONE!\n\n"