sozsoft-platform/configs/deployment/scripts/build/api.sh
Sedat Öztürk 429227df1d Initial
2026-02-24 23:44:16 +03:00

21 lines
825 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

cd ~/sozsoft-platform
git checkout main
git fetch && git pull
cd ~/sozsoft-platform/api
VERSION=$(cat ~/sozsoft-platform/api/src/Sozsoft.Platform.HttpApi.Host/appsettings.json \
| grep -o '"[^"]*"\s*:\s*"[^"]*"' \
| grep -E '^"(Version)"' \
| sed 's/^.* //' \
| sed 's/"//g')
# DevExpress lisansını dosyadan oku (GitHub'a commit edilmemiş)
DEVEXPRESS_LICENSE=$(cat ~/sozsoft-platform/api/DevExpress_License.txt 2>/dev/null || echo "")
docker build \
--build-arg DevExpress_License="${DEVEXPRESS_LICENSE}" \
-t devops.sozsoft.com/sozsoft/sozsoft-platform-api:${VERSION} \
-t devops.sozsoft.com/sozsoft/sozsoft-platform-api:latest \
-f Sozsoft.Platform.HttpApi.Host.Dockerfile .
docker push devops.sozsoft.com/sozsoft/sozsoft-platform-api:${VERSION}
docker push devops.sozsoft.com/sozsoft/sozsoft-platform-api:latest