Skip to content

Commit

Permalink
Merge pull request #25 from zhanknight/initial_deployment
Browse files Browse the repository at this point in the history
Initial deployment
  • Loading branch information
zhanknight committed Nov 6, 2023
2 parents 1abb6e5 + f71ac9b commit 5ad908d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/main_tacopoetry.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy ASP.Net Core app to Azure Web App - TacoPoetry
name: Build and deploy TacoPoetry UI to Azure

on:
push:
branches:
- main
paths-ignore:
- 'TacoPoetry.API/**'
- '**/README.md'
workflow_dispatch:

jobs:
build:
runs-on: windows-latest
defaults:
run:
working-directory: ./TacoPoetry.UI

steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/main_tacopoetryapi.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy ASP.Net Core app to Azure Web App - TacoPoetryAPI
name: Build and deploy TacoPoetry API to Azure

on:
push:
branches:
- main
paths-ignore:
- 'TacoPoetry.UI/**'
- '**/README.md'
workflow_dispatch:

jobs:
build:
runs-on: windows-latest
defaults:
run:
working-directory: ./TacoPoetry.API

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions TacoPoetry.API/TacoPoetry.API/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@
builder.Services.AddScoped<IContentService, ContentService>();
builder.Services.AddScoped<ITagService, TagService>();

builder.Services.AddHealthChecks();

builder.Services.AddSwaggerGen();

var app = builder.Build();

app.MapHealthChecks("/healthytaco");

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
Expand Down

0 comments on commit 5ad908d

Please sign in to comment.