Skip to content

Commit

Permalink
fixes v1
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasSirotek committed Dec 17, 2023
1 parent 3b9a625 commit 757791b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"version": 1,
"isRoot": true,
"tools": {}
}
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
- name: Build solution
run: dotnet build --no-restore --configuration Release


- name: Publish website
if: ${{ inputs.build-artifacts == true }}
run: |
Expand All @@ -63,6 +62,11 @@ jobs:
- name: Create EF Core migrations bundle
if: ${{ inputs.build-artifacts == true }}
run: |
export AZURE_CLIENT_ID="${{ secrets.AZURE_CLIENT_ID }}"
export AZURE_CLIENT_SECRET="${{ secrets.AZURE_CLIENT_SECRET }}"
export AZURE_TENANT_ID="${{ secrets.AZURE_TENANT_ID }}"
dotnet new tool-manifest
dotnet tool install dotnet-ef
dotnet ef migrations bundle --configuration Release -p ./src/Infrastructure/ -s ./src/Web/ -o efbundle.exe
Expand Down
4 changes: 2 additions & 2 deletions src/Infrastructure/DependencyInjection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public static IServiceCollection AddInfrastructureServices(this IServiceCollecti
var stripeApiKey = secretClient.GetSecret("Stripe--ApiKey").Value;
var stripeWhKey = secretClient.GetSecret("Stripe--WHKey").Value;

Guard.Against.Null(stripeApiKey, message: "Connection string 'ApiKey' not found.");
Guard.Against.Null(stripeWhKey, message: "Connection string 'WHKey' not found.");
// Guard.Against.Null(stripeApiKey, message: "Connection string 'ApiKey' not found.");
// Guard.Against.Null(stripeWhKey, message: "Connection string 'WHKey' not found.");

var stripeConfig = new StripeConfig
{
Expand Down

0 comments on commit 757791b

Please sign in to comment.