-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from thinhnotes/master
add CICD for azure and callback of spa
- Loading branch information
Showing
10 changed files
with
349 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Docker image | ||
# Build a Docker image to run, deploy, or push to a container registry. | ||
# Add steps that use Docker Compose, tag images, push to a registry, run an image, and more: | ||
# https://docs.microsoft.com/vsts/pipelines/languages/docker | ||
|
||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
|
||
variables: | ||
DOCKER_TAG: 'latest' | ||
DOCKER_GROUP: 'vndg' | ||
DOCKER_ENV: 'production' | ||
|
||
resources: | ||
repositories: | ||
- repository: self | ||
checkoutOptions: | ||
submodules: true | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- src/services/cart/* | ||
|
||
steps: | ||
- checkout: self | ||
- script: | ||
docker login -u $(DOCKER_USERNAME) -p $(DOCKER_PASSWORD) | ||
displayName: 'docker login' | ||
- script: | | ||
docker pull microsoft/dotnet:2.1.5-aspnetcore-runtime-alpine | ||
displayName: 'Pull Docker Images' | ||
- script: | | ||
docker build -f ./src/services/cart/Dockerfile -t $(DOCKER_USERNAME)/cs-cart-service:$(DOCKER_TAG) . | ||
docker tag $(DOCKER_USERNAME)/cs-cart-service:$(DOCKER_TAG) $(DOCKER_GROUP)/cs-cart-service:$(DOCKER_TAG) | ||
docker push $(DOCKER_GROUP)/cs-cart-service:$(DOCKER_TAG) | ||
displayName: 'Build Cart Service' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Docker image | ||
# Build a Docker image to run, deploy, or push to a container registry. | ||
# Add steps that use Docker Compose, tag images, push to a registry, run an image, and more: | ||
# https://docs.microsoft.com/vsts/pipelines/languages/docker | ||
|
||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
|
||
variables: | ||
DOCKER_TAG: 'latest' | ||
DOCKER_GROUP: 'vndg' | ||
DOCKER_ENV: 'production' | ||
|
||
resources: | ||
repositories: | ||
- repository: self | ||
checkoutOptions: | ||
submodules: true | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- src/services/catalog/* | ||
|
||
steps: | ||
- checkout: self | ||
- script: | ||
docker login -u $(DOCKER_USERNAME) -p $(DOCKER_PASSWORD) | ||
displayName: 'docker login' | ||
- script: | | ||
docker pull node:alpine | ||
displayName: 'Pull Docker Images' | ||
- script: | | ||
docker build -f ./src/services/catalog/Dockerfile -t $(DOCKER_USERNAME)/cs-catalog-service:$(DOCKER_TAG) . | ||
docker tag $(DOCKER_USERNAME)/cs-catalog-service:$(DOCKER_TAG) $(DOCKER_GROUP)/cs-catalog-service:$(DOCKER_TAG) | ||
docker push $(DOCKER_GROUP)/cs-catalog-service:$(DOCKER_TAG) | ||
displayName: 'Build Catalog Service' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Docker image | ||
# Build a Docker image to run, deploy, or push to a container registry. | ||
# Add steps that use Docker Compose, tag images, push to a registry, run an image, and more: | ||
# https://docs.microsoft.com/vsts/pipelines/languages/docker | ||
|
||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
|
||
variables: | ||
DOCKER_TAG: 'latest' | ||
DOCKER_GROUP: 'vndg' | ||
DOCKER_ENV: 'production' | ||
|
||
resources: | ||
repositories: | ||
- repository: self | ||
checkoutOptions: | ||
submodules: true | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- src/services/idp/* | ||
|
||
steps: | ||
- checkout: self | ||
- script: | ||
docker login -u $(DOCKER_USERNAME) -p $(DOCKER_PASSWORD) | ||
displayName: 'docker login' | ||
- script: | | ||
docker pull microsoft/dotnet:2.1.5-aspnetcore-runtime-alpine | ||
displayName: 'Pull Docker Images' | ||
- script: | | ||
docker build -f ./src/services/idp/Dockerfile -t $(DOCKER_USERNAME)/cs-idp-service:$(DOCKER_TAG) . | ||
docker tag $(DOCKER_USERNAME)/cs-idp-service:$(DOCKER_TAG) $(DOCKER_GROUP)/cs-idp-service:$(DOCKER_TAG) | ||
docker push $(DOCKER_GROUP)/cs-idp-service:$(DOCKER_TAG) | ||
displayName: 'Build IdP Service' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Docker image | ||
# Build a Docker image to run, deploy, or push to a container registry. | ||
# Add steps that use Docker Compose, tag images, push to a registry, run an image, and more: | ||
# https://docs.microsoft.com/vsts/pipelines/languages/docker | ||
|
||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
|
||
variables: | ||
DOCKER_TAG: 'latest' | ||
DOCKER_GROUP: 'vndg' | ||
DOCKER_ENV: 'production' | ||
|
||
resources: | ||
repositories: | ||
- repository: self | ||
checkoutOptions: | ||
submodules: true | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- src/services/inventory/* | ||
|
||
steps: | ||
- checkout: self | ||
- script: | ||
docker login -u $(DOCKER_USERNAME) -p $(DOCKER_PASSWORD) | ||
displayName: 'docker login' | ||
- script: | | ||
docker pull microsoft/dotnet:2.1.5-aspnetcore-runtime-alpine | ||
displayName: 'Pull Docker Images' | ||
- script: | | ||
docker build -f ./src/services/inventory/Dockerfile -t $(DOCKER_USERNAME)/cs-inventory-service:$(DOCKER_TAG) . | ||
docker tag $(DOCKER_USERNAME)/cs-inventory-service:$(DOCKER_TAG) $(DOCKER_GROUP)/cs-inventory-service:$(DOCKER_TAG) | ||
docker push $(DOCKER_GROUP)/cs-inventory-service:$(DOCKER_TAG) | ||
displayName: 'Build Inventoty Service' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Docker image | ||
# Build a Docker image to run, deploy, or push to a container registry. | ||
# Add steps that use Docker Compose, tag images, push to a registry, run an image, and more: | ||
# https://docs.microsoft.com/vsts/pipelines/languages/docker | ||
|
||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
|
||
variables: | ||
DOCKER_TAG: 'latest' | ||
DOCKER_GROUP: 'vndg' | ||
DOCKER_ENV: 'production' | ||
|
||
resources: | ||
repositories: | ||
- repository: self | ||
checkoutOptions: | ||
submodules: true | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- src/services/rating/* | ||
|
||
steps: | ||
- checkout: self | ||
- script: | ||
docker login -u $(DOCKER_USERNAME) -p $(DOCKER_PASSWORD) | ||
displayName: 'docker login' | ||
- script: | | ||
docker pull microsoft/dotnet:2.1.5-aspnetcore-runtime-alpine | ||
displayName: 'Pull Docker Images' | ||
- script: | | ||
echo "Build Rating Service" | ||
docker build -f ./src/services/rating/Dockerfile -t $(DOCKER_USERNAME)/cs-rating-service:$(DOCKER_TAG) . | ||
docker tag $(DOCKER_USERNAME)/cs-rating-service:$(DOCKER_TAG) $(DOCKER_GROUP)/cs-rating-service:$(DOCKER_TAG) | ||
docker push $(DOCKER_GROUP)/cs-rating-service:$(DOCKER_TAG) | ||
displayName: 'Build Rating Service' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Docker image | ||
# Build a Docker image to run, deploy, or push to a container registry. | ||
# Add steps that use Docker Compose, tag images, push to a registry, run an image, and more: | ||
# https://docs.microsoft.com/vsts/pipelines/languages/docker | ||
|
||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
|
||
variables: | ||
DOCKER_TAG: 'latest' | ||
DOCKER_GROUP: 'vndg' | ||
DOCKER_ENV: 'production' | ||
|
||
resources: | ||
repositories: | ||
- repository: self | ||
checkoutOptions: | ||
submodules: true | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- src/services/review/* | ||
|
||
steps: | ||
- checkout: self | ||
- script: | ||
docker login -u $(DOCKER_USERNAME) -p $(DOCKER_PASSWORD) | ||
displayName: 'docker login' | ||
- script: | | ||
docker pull microsoft/dotnet:2.1.5-aspnetcore-runtime-alpine | ||
displayName: 'Pull Docker Images' | ||
- script: | | ||
docker build -f ./src/services/review/Dockerfile -t $(DOCKER_USERNAME)/cs-review-service:$(DOCKER_TAG) . | ||
docker tag $(DOCKER_USERNAME)/cs-review-service:$(DOCKER_TAG) $(DOCKER_GROUP)/cs-review-service:$(DOCKER_TAG) | ||
docker push $(DOCKER_GROUP)/cs-review-service:$(DOCKER_TAG) | ||
displayName: 'Build Review Service' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Docker image | ||
# Build a Docker image to run, deploy, or push to a container registry. | ||
# Add steps that use Docker Compose, tag images, push to a registry, run an image, and more: | ||
# https://docs.microsoft.com/vsts/pipelines/languages/docker | ||
|
||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
|
||
variables: | ||
DOCKER_TAG: 'latest' | ||
DOCKER_GROUP: 'vndg' | ||
DOCKER_ENV: 'production' | ||
|
||
resources: | ||
repositories: | ||
- repository: self | ||
checkoutOptions: | ||
submodules: true | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- src/web/* | ||
|
||
steps: | ||
- checkout: self | ||
- script: | ||
docker login -u $(DOCKER_USERNAME) -p $(DOCKER_PASSWORD) | ||
displayName: 'docker login' | ||
- script: | | ||
docker pull microsoft/dotnet:2.1.5-aspnetcore-runtime-alpine | ||
docker pull microsoft/dotnet:2.1.403-sdk-alpine | ||
docker pull nginx:alpine | ||
docker pull node:alpine | ||
docker pull mysql:8.0.12 | ||
displayName: 'Pull Docker Images' | ||
- script: | | ||
docker build -f ./src/web/Dockerfile -t $(DOCKER_USERNAME)/cs-spa:$(DOCKER_TAG) . | ||
docker tag $(DOCKER_USERNAME)/cs-spa:$(DOCKER_TAG) $(DOCKER_GROUP)/cs-spa:$(DOCKER_TAG) | ||
docker push $(DOCKER_GROUP)/cs-spa:$(DOCKER_TAG) | ||
displayName: 'Build Web - Vuejs' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Docker image | ||
# Build a Docker image to run, deploy, or push to a container registry. | ||
# Add steps that use Docker Compose, tag images, push to a registry, run an image, and more: | ||
# https://docs.microsoft.com/vsts/pipelines/languages/docker | ||
|
||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
|
||
variables: | ||
DOCKER_TAG: 'latest' | ||
DOCKER_GROUP: 'vndg' | ||
DOCKER_ENV: 'production' | ||
|
||
resources: | ||
repositories: | ||
- repository: self | ||
checkoutOptions: | ||
submodules: true | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- src/WebUI/* | ||
|
||
steps: | ||
- checkout: self | ||
- script: | ||
docker login -u $(DOCKER_USERNAME) -p $(DOCKER_PASSWORD) | ||
displayName: 'docker login' | ||
- script: | | ||
docker pull microsoft/dotnet:2.1.403-sdk-alpine | ||
displayName: 'Pull Docker Images' | ||
- script: | | ||
docker build -f ./src/WebUI/Dockerfile -t $(DOCKER_USERNAME)/cs-webui:$(DOCKER_TAG) . | ||
docker tag $(DOCKER_USERNAME)/cs-webui:$(DOCKER_TAG) $(DOCKER_GROUP)/cs-webui:$(DOCKER_TAG) | ||
docker push $(DOCKER_GROUP)/cs-webui:$(DOCKER_TAG) | ||
displayName: 'Build Web UI - Blazor' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters