publish profile with g-int
This commit is contained in:
parent
cf9a94fd79
commit
9b7420e9c1
1 changed files with 8 additions and 17 deletions
25
.github/workflows/int_gateway-int.yml
vendored
25
.github/workflows/int_gateway-int.yml
vendored
|
|
@ -1,7 +1,3 @@
|
||||||
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
|
|
||||||
# More GitHub Actions for Azure: https://github.com/Azure/actions
|
|
||||||
# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions
|
|
||||||
|
|
||||||
name: Build and deploy Python app to Azure Web App - gateway-int
|
name: Build and deploy Python app to Azure Web App - gateway-int
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|
@ -14,7 +10,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read #This is required for actions/checkout
|
contents: read
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
@ -34,8 +30,6 @@ jobs:
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r requirements.txt --no-cache-dir
|
pip install -r requirements.txt --no-cache-dir
|
||||||
|
|
||||||
# Optional: Add step to run tests here (PyTest, Django test suites, etc.)
|
|
||||||
|
|
||||||
- name: Zip artifact for deployment
|
- name: Zip artifact for deployment
|
||||||
run: zip release.zip ./* -r
|
run: zip release.zip ./* -r
|
||||||
|
|
||||||
|
|
@ -51,7 +45,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
environment:
|
environment:
|
||||||
name: 'Production'
|
name: 'Production' # Or change to 'Integration' if you prefer
|
||||||
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
|
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -65,16 +59,13 @@ jobs:
|
||||||
|
|
||||||
- name: Set productive environment
|
- name: Set productive environment
|
||||||
run: cp env_int.env .env
|
run: cp env_int.env .env
|
||||||
|
|
||||||
- name: Login to Azure
|
# REMOVED: Azure login step - not needed with publish profile
|
||||||
uses: azure/login@v1
|
|
||||||
with:
|
- name: 'Deploy to Azure Web App'
|
||||||
creds: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'
|
uses: azure/webapps-deploy@v3 # Using v3 like the working one
|
||||||
|
|
||||||
- name: Deploy to Azure Web App
|
|
||||||
uses: azure/webapps-deploy@v2
|
|
||||||
id: deploy-to-webapp
|
id: deploy-to-webapp
|
||||||
with:
|
with:
|
||||||
app-name: 'gateway-int'
|
app-name: 'gateway-int'
|
||||||
slot-name: 'Production'
|
slot-name: 'Production'
|
||||||
package: .
|
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_GATEWAY_INT }}
|
||||||
Loading…
Reference in a new issue