as we run it in the root we dont want to have it go up 2 levels only be at the same level
15 lines
951 B
PowerShell
15 lines
951 B
PowerShell
Write-Host "Building the docker images for front and backend"
|
|
docker build -t logistics_support_tool:frontend-latest -f ./frontend/Dockerfile --no-cache ./frontend
|
|
docker build -t logistics_support_tool:backend-latest -f ./backend/Dockerfile --no-cache ./backend
|
|
|
|
Write-Host "Tagging the builds with latest this is for testing test basically."
|
|
docker tag logistics_support_tool:frontend-latest git.tuffraid.net/cowch/logistics_support_tool:frontend-latest
|
|
docker tag logistics_support_tool:backend-latest git.tuffraid.net/cowch/logistics_support_tool:backend-latest
|
|
|
|
# docker build -t logistics_support_tool:frontend-latest --no-cache .
|
|
Write-Host "Push both builds to our gitea server."
|
|
docker push git.tuffraid.net/cowch/logistics_support_tool:frontend-latest
|
|
docker push git.tuffraid.net/cowch/logistics_support_tool:backend-latest
|
|
|
|
Write-Host "Pull the new images to our docker system"
|
|
docker compose -f ./docker-compose.yml up -d --force-recreate |