-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild-docker-images.ps1
35 lines (29 loc) · 1.43 KB
/
build-docker-images.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
param(
[string]$version,
[string]$repo
)
echo ""
echo "Building version $version for repository $repo"
echo ""
echo "Building Frontend App"
docker build -t dpm-frontend-app:latest -t dpm-frontend-app:$version -t "$repo/dpm-frontend-app:latest" -t "$repo/dpm-frontend-app:$version" .\frontend-app\
echo ""
echo "Building API Gateway"
Push-Location ".\api-gateway\"
docker build -t dpm-api-gateway:latest -t dpm-api-gateway:$version -t "$repo/dpm-api-gateway:latest" -t "$repo/dpm-api-gateway:$version" -f "src\ProjectManagement.ApiGateway\Dockerfile" .
Pop-Location
echo ""
echo "Building Company API"
Push-Location ".\company-api\"
docker build -t dpm-company-api:latest -t dpm-company-api:$version -t "$repo/dpm-company-api:latest" -t "$repo/dpm-company-api:$version" -f "src\ProjectManagement.Company.Api\Dockerfile" .
Pop-Location
echo ""
echo "Building Project API"
Push-Location ".\project-api\"
docker build -t dpm-project-api:latest -t dpm-project-api:$version -t "$repo/dpm-project-api:latest" -t "$repo/dpm-project-api:$version" -f "src\ProjectManagement.Project.Api\Dockerfile" .
Pop-Location
echo ""
echo "Building Health Checks Dashboard"
Push-Location ".\health-checks-dashboard\"
docker build -t dpm-health-checks-dashboard:latest -t dpm-health-checks-dashboard:$version -t "$repo/dpm-health-checks-dashboard:latest" -t "$repo/dpm-health-checks-dashboard:$version" -f "src\ProjectManagement.HealthChecksDashboard\Dockerfile" .
Pop-Location