|
| 1 | +Param( |
| 2 | + [parameter(Mandatory=$false)][string]$acrName, |
| 3 | + [parameter(Mandatory=$false)][string]$gitUser, |
| 4 | + [parameter(Mandatory=$false)][string]$repoName="eShopOnContainers", |
| 5 | + [parameter(Mandatory=$false)][string]$gitBranch="dev", |
| 6 | + [parameter(Mandatory=$true)][string]$patToken |
| 7 | +) |
| 8 | + |
| 9 | +$gitContext = "https://github.com/$gitUser/$repoName" |
| 10 | + |
| 11 | +$services = @( |
| 12 | + @{ Name="eshopbasket"; Image="eshop/basket.api"; File="src/Services/Basket/Basket.API/Dockerfile" }, |
| 13 | + @{ Name="eshopcatalog"; Image="eshop/catalog.api"; File="src/Services/Catalog/Catalog.API/Dockerfile" }, |
| 14 | + @{ Name="eshopidentity"; Image="eshop/identity.api"; File="src/Services/Identity/Identity.API/Dockerfile" }, |
| 15 | + @{ Name="eshopordering"; Image="eshop/ordering.api"; File="src/Services/Ordering/Ordering.API/Dockerfile" }, |
| 16 | + @{ Name="eshoporderingbg"; Image="eshop/ordering.backgroundtasks"; File="src/Services/Ordering/Ordering.BackgroundTasks/Dockerfile" }, |
| 17 | + @{ Name="eshopmarketing"; Image="eshop/marketing.api"; File="src/Services/Marketing/Marketing.API/Dockerfile" }, |
| 18 | + @{ Name="eshopwebspa"; Image="eshop/webspa"; File="src/Web/WebSPA/Dockerfile" }, |
| 19 | + @{ Name="eshopwebmvc"; Image="eshop/webmvc"; File="src/Web/WebMVC/Dockerfile" }, |
| 20 | + @{ Name="eshopwebstatus"; Image="eshop/webstatus"; File="src/Web/WebStatus/Dockerfile" }, |
| 21 | + @{ Name="eshoppayment"; Image="eshop/payment.api"; File="src/Services/Payment/Payment.API/Dockerfile" }, |
| 22 | + @{ Name="eshoplocations"; Image="eshop/locations.api"; File="src/Services/Location/Locations.API/Dockerfile" }, |
| 23 | + @{ Name="eshopocelotapigw"; Image="eshop/ocelotapigw"; File="src/ApiGateways/ApiGw-Base/Dockerfile" }, |
| 24 | + @{ Name="eshopmobileshoppingagg"; Image="eshop/mobileshoppingagg"; File="src/ApiGateways/Mobile.Bff.Shopping/aggregator/Dockerfile" }, |
| 25 | + @{ Name="eshopwebshoppingagg"; Image="eshop/webshoppingagg"; File="src/ApiGateways/Web.Bff.Shopping/aggregator/Dockerfile" }, |
| 26 | + @{ Name="eshoporderingsignalrhub"; Image="eshop/ordering.signalrhub"; File="src/Services/Ordering/Ordering.SignalrHub/Dockerfile" } |
| 27 | +) |
| 28 | + |
| 29 | +$services |% { |
| 30 | + $bname = $_.Name |
| 31 | + $bimg = $_.Image |
| 32 | + $bfile = $_.File |
| 33 | + Write-Host "Setting ACR build $bname ($bimg)" |
| 34 | + az acr build-task create --registry $acrName --name $bname --image ${bimg}:$gitBranch --context $gitContext --branch $gitBranch --git-access-token $patToken --file $bfile |
| 35 | +} |
| 36 | + |
| 37 | +# Basket.API |
0 commit comments