You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1000 B

  1. #!/bin/sh
  2. dotnet restore
  3. rm -rf ./pub
  4. dotnet publish "$(pwd)/src/Web/WebMVC/project.json" -o "$(pwd)/pub/webMVC"
  5. dotnet publish "$(pwd)/src/Services/Catalog/Catalog.API/project.json" -o "$(pwd)/pub/catalog"
  6. dotnet publish "$(pwd)/src/Services/Ordering/Ordering.API/project.json" -o "$(pwd)/pub/ordering"
  7. dotnet publish "$(pwd)/src/Services/Basket/Basket.API/project.json" -o "$(pwd)/pub/basket"
  8. pushd "$(pwd)/src/Web/WebSPA/eShopOnContainers.WebSPA"
  9. npm install
  10. npm run build:prod
  11. popd
  12. dotnet publish "$(pwd)/src/Web/WebSPA/eShopOnContainers.WebSPA/project.json" -o "$(pwd)/pub/webSPA"
  13. dotnet publish "$(pwd)/src/Services/Identity/Identity.API/project.json" -o "$(pwd)/pub/identity"
  14. docker build -t eshop/web "$(pwd)/pub/webMVC"
  15. docker build -t eshop/catalog.api "$(pwd)/pub/catalog"
  16. docker build -t eshop/ordering.api "$(pwd)/pub/ordering"
  17. docker build -t eshop/basket.api "$(pwd)/pub/basket"
  18. docker build -t eshop/webspa "$(pwd)/pub/webSPA"
  19. docker build -t eshop/identity "$(pwd)/pub/identity"