Skip to content

Commit

Permalink
Tilbage til det som sidst virkede mht Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikfri authored Nov 7, 2024
1 parent 1a3fb0f commit 1b947a4
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/DB-Angora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,28 +60,8 @@ jobs:
JWT_AUDIENCE: ${{ secrets.JWT_AUDIENCE }}
JWT_KEY: ${{ secrets.JWT_KEY }}
ASPNETCORE_ENVIRONMENT: Production
shell: pwsh
run: |
Get-ChildItem env: | Where-Object { $_.Name -in @('AZURE_SQL_CONNECTION_STRING','JWT_ISSUER','JWT_AUDIENCE','JWT_KEY','ASPNETCORE_ENVIRONMENT') } | ForEach-Object {
"$($_.Name)=$($_.Value)" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
}
- name: Debug Environment Variables
shell: pwsh
run: |
Write-Host "Checking environment variables:"
@(
"AZURE_SQL_CONNECTION_STRING",
"JWT_ISSUER",
"JWT_AUDIENCE",
"JWT_KEY"
) | ForEach-Object {
if ([string]::IsNullOrEmpty($env:$_)) {
Write-Host "Warning: $_ is empty or not set"
} else {
Write-Host "$_ is configured"
}
}
echo "Environment variables set."
- name: Deploy to Azure WebApp
uses: azure/webapps-deploy@v2
Expand Down

0 comments on commit 1b947a4

Please sign in to comment.