mirror of https://github.com/abpframework/eventhub
committed by
GitHub
18 changed files with 4767 additions and 7311 deletions
@ -0,0 +1,65 @@ |
|||||
|
# Deploy to Azure Kubernetes Service |
||||
|
# Build and push image to Azure Container Registry; Deploy to Azure Kubernetes Service |
||||
|
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker |
||||
|
|
||||
|
trigger: |
||||
|
- dev |
||||
|
|
||||
|
variables: |
||||
|
|
||||
|
# Container registry service connection established during pipeline creation |
||||
|
dockerRegistryServiceConnection: '0648130a-0d3e-41f3-b92e-fc7f620264e8' |
||||
|
imageRepository: 'voloeventhub' |
||||
|
containerRegistry: 'voloeventhub.azurecr.io' |
||||
|
dockerfilePath: '**/Dockerfile' |
||||
|
tag: '$(Build.BuildName)' |
||||
|
|
||||
|
# Agent VM image name |
||||
|
vmImageName: 'ubuntu-latest' |
||||
|
|
||||
|
stages: |
||||
|
- stage: Build |
||||
|
displayName: Build stage |
||||
|
jobs: |
||||
|
- job: Build |
||||
|
displayName: Build |
||||
|
pool: |
||||
|
vmImage: $(vmImageName) |
||||
|
steps: |
||||
|
- task: Docker@2 |
||||
|
displayName: Build and push an image to container registry |
||||
|
inputs: |
||||
|
command: buildAndPush |
||||
|
repository: $(imageRepository) |
||||
|
dockerfile: $(dockerfilePath) |
||||
|
containerRegistry: $(dockerRegistryServiceConnection) |
||||
|
tags: | |
||||
|
$(tag) |
||||
|
|
||||
|
- publish: manifests |
||||
|
artifact: manifests |
||||
|
|
||||
|
- stage: Deploy |
||||
|
displayName: Deploy stage |
||||
|
dependsOn: Build |
||||
|
|
||||
|
jobs: |
||||
|
- deployment: Deploy |
||||
|
displayName: Deploy |
||||
|
pool: |
||||
|
vmImage: $(vmImageName) |
||||
|
environment: 'volosofteventhub.default' |
||||
|
strategy: |
||||
|
runOnce: |
||||
|
deploy: |
||||
|
steps: |
||||
|
- task: KubernetesManifest@0 |
||||
|
displayName: Deploy to Kubernetes cluster |
||||
|
inputs: |
||||
|
action: deploy |
||||
|
manifests: | |
||||
|
$(Pipeline.Workspace)/manifests/deployment.yml |
||||
|
$(Pipeline.Workspace)/manifests/service.yml |
||||
|
containers: | |
||||
|
$(containerRegistry)/$(imageRepository):$(tag) |
||||
|
|
||||
@ -0,0 +1,19 @@ |
|||||
|
apiVersion : apps/v1 |
||||
|
kind: Deployment |
||||
|
metadata: |
||||
|
name: voloeventhub |
||||
|
spec: |
||||
|
replicas: 1 |
||||
|
selector: |
||||
|
matchLabels: |
||||
|
app: voloeventhub |
||||
|
template: |
||||
|
metadata: |
||||
|
labels: |
||||
|
app: voloeventhub |
||||
|
spec: |
||||
|
containers: |
||||
|
- name: voloeventhub |
||||
|
image: voloeventhub.azurecr.io/voloeventhub |
||||
|
ports: |
||||
|
- containerPort: 80 |
||||
@ -0,0 +1,10 @@ |
|||||
|
apiVersion: v1 |
||||
|
kind: Service |
||||
|
metadata: |
||||
|
name: voloeventhub |
||||
|
spec: |
||||
|
type: LoadBalancer |
||||
|
ports: |
||||
|
- port: 80 |
||||
|
selector: |
||||
|
app: voloeventhub |
||||
File diff suppressed because it is too large
@ -1,31 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace EventHub.Migrations |
|
||||
{ |
|
||||
public partial class Added_Indexes : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_EhEvents_IsEmailSentToMembers", |
|
||||
table: "EhEvents", |
|
||||
column: "IsEmailSentToMembers"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_EhEvents_IsRemindingEmailSent_StartTime", |
|
||||
table: "EhEvents", |
|
||||
columns: new[] { "IsRemindingEmailSent", "StartTime" }); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropIndex( |
|
||||
name: "IX_EhEvents_IsEmailSentToMembers", |
|
||||
table: "EhEvents"); |
|
||||
|
|
||||
migrationBuilder.DropIndex( |
|
||||
name: "IX_EhEvents_IsRemindingEmailSent_StartTime", |
|
||||
table: "EhEvents"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
Loading…
Reference in new issue