Skip to content

Commit 3015de0

Browse files
committed
fix: add gunicorn and workflow tweaks
1 parent 2724f87 commit 3015de0

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/ci-cd.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,26 @@ jobs:
3737
needs: build-test
3838
runs-on: ubuntu-latest
3939
environment: production
40+
# Hard-code the app name here to avoid VS Code warnings from vars.*
41+
env:
42+
AZURE_WEBAPP_NAME: devops-starter-webapp-dev31
4043
steps:
4144
- name: Checkout
4245
uses: actions/checkout@v4
4346

44-
# Sanity check: ensures secret/variable exist at runtime
45-
- name: Check contexts
47+
# Sanity check: ensure secret exists at runtime (won’t print it)
48+
- name: Check publish profile presence
4649
run: |
47-
echo "AZURE_WEBAPP_NAME=${{ vars.AZURE_WEBAPP_NAME }}"
48-
if [ -z "${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}" ]; then
49-
echo "❌ Missing AZURE_WEBAPP_PUBLISH_PROFILE secret"; exit 1
50+
if [ -z "${{ secrets['AZURE_WEBAPP_PUBLISH_PROFILE'] }}" ]; then
51+
echo "❌ Missing secret: AZURE_WEBAPP_PUBLISH_PROFILE"; exit 1
5052
else
5153
echo "✅ Publish profile secret present"
5254
fi
5355
5456
- name: Azure WebApp Deploy
5557
uses: azure/webapps-deploy@v3
5658
with:
57-
app-name: ${{ vars.AZURE_WEBAPP_NAME }}
58-
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
59+
app-name: ${{ env.AZURE_WEBAPP_NAME }}
60+
# Use bracket notation; the action reads the secret at runtime
61+
publish-profile: ${{ secrets['AZURE_WEBAPP_PUBLISH_PROFILE'] }}
5962
package: .

requirements.txt

20 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)