From ed236da4ca3cc366b9a40bfe3f13746a52b37373 Mon Sep 17 00:00:00 2001
From: ValueOn AG
Date: Tue, 9 Sep 2025 14:32:07 +0200
Subject: [PATCH] updated publish keys
---
.github/workflows/int_gateway-int.yml | 4 +
...gateway-prod.yml => main_gateway-prod.yml} | 6 +-
.github/workflows/main_poweron-gateway.yml | 75 -------------------
3 files changed, 7 insertions(+), 78 deletions(-)
rename .github/workflows/{main_poweron-gateway-prod.yml => main_gateway-prod.yml} (92%)
delete mode 100644 .github/workflows/main_poweron-gateway.yml
diff --git a/.github/workflows/int_gateway-int.yml b/.github/workflows/int_gateway-int.yml
index 2a7da645..ba0fe2e2 100644
--- a/.github/workflows/int_gateway-int.yml
+++ b/.github/workflows/int_gateway-int.yml
@@ -1,3 +1,7 @@
+# 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
on:
diff --git a/.github/workflows/main_poweron-gateway-prod.yml b/.github/workflows/main_gateway-prod.yml
similarity index 92%
rename from .github/workflows/main_poweron-gateway-prod.yml
rename to .github/workflows/main_gateway-prod.yml
index 9dc86510..09e7c1f5 100644
--- a/.github/workflows/main_poweron-gateway-prod.yml
+++ b/.github/workflows/main_gateway-prod.yml
@@ -2,7 +2,7 @@
# 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 - poweron-gateway-prod
+name: Build and deploy Python app to Azure Web App - gateway-prod
on:
push:
@@ -70,6 +70,6 @@ jobs:
uses: azure/webapps-deploy@v3
id: deploy-to-webapp
with:
- app-name: 'poweron-gateway-prod'
+ app-name: 'gateway_prod'
slot-name: 'Production'
- publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_A0393566625E447EAD8EB1C489BA06A2 }}
\ No newline at end of file
+ publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_GATEWAY_PROD }}
\ No newline at end of file
diff --git a/.github/workflows/main_poweron-gateway.yml b/.github/workflows/main_poweron-gateway.yml
deleted file mode 100644
index a385dc98..00000000
--- a/.github/workflows/main_poweron-gateway.yml
+++ /dev/null
@@ -1,75 +0,0 @@
-# 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 - poweron-gateway
-
-on:
- push:
- branches:
- - main
- workflow_dispatch:
-
-jobs:
- build:
- runs-on: ubuntu-latest
- permissions:
- contents: read #This is required for actions/checkout
-
- steps:
- - uses: actions/checkout@v4
-
- - name: Set up Python version
- uses: actions/setup-python@v5
- with:
- python-version: '3.11'
-
- - name: Create and start virtual environment
- run: |
- python -m venv venv
- source venv/bin/activate
-
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- 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
- run: zip release.zip ./* -r
-
- - name: Upload artifact for deployment jobs
- uses: actions/upload-artifact@v4
- with:
- name: python-app
- path: |
- release.zip
- !venv/
-
- deploy:
- runs-on: ubuntu-latest
- needs: build
- environment:
- name: 'Production'
- url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
-
- steps:
- - name: Download artifact from build job
- uses: actions/download-artifact@v4
- with:
- name: python-app
-
- - name: Unzip artifact for deployment
- run: unzip release.zip
-
- - name: Set productive environment
- run: cp env_prod.env .env
-
- - name: 'Deploy to Azure Web App'
- uses: azure/webapps-deploy@v3
- id: deploy-to-webapp
- with:
- app-name: 'poweron-gateway'
- slot-name: 'Production'
- publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_A0393566625E447EAD8EB1C489BA06A2 }}
\ No newline at end of file