From c3dbf6712d05a459506ed912de64879b6edb2ddd Mon Sep 17 00:00:00 2001 From: kickoffqi Date: Sat, 3 Jan 2026 16:40:56 +1100 Subject: [PATCH 01/12] Update app.py --- app.py | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/app.py b/app.py index 6320868..35e236d 100644 --- a/app.py +++ b/app.py @@ -1,23 +1,8 @@ import os from flask import Flask -from flaskext.mysql import MySQL # For newer versions of flask-mysql -# from flask.ext.mysql import MySQL # For older versions of flask-mysql -app = Flask(__name__) - -mysql = MySQL() - -mysql_database_host = 'MYSQL_DATABASE_HOST' in os.environ and os.environ['MYSQL_DATABASE_HOST'] or 'localhost' - -# MySQL configurations -app.config['MYSQL_DATABASE_USER'] = 'db_user' -app.config['MYSQL_DATABASE_PASSWORD'] = 'Passw0rd' -app.config['MYSQL_DATABASE_DB'] = 'employee_db' -app.config['MYSQL_DATABASE_HOST'] = mysql_database_host -mysql.init_app(app) -conn = mysql.connect() +app = Flask(__name__) -cursor = conn.cursor() @app.route("/") def main(): @@ -27,16 +12,5 @@ def main(): def hello(): return 'I am good, how about you?' -@app.route('/read from database') -def read(): - cursor.execute("SELECT * FROM employees") - row = cursor.fetchone() - result = [] - while row is not None: - result.append(row[0]) - row = cursor.fetchone() - - return ",".join(result) - if __name__ == "__main__": app.run() From 481cbd2f9f51a26408ef5db504c312fd7d213ccd Mon Sep 17 00:00:00 2001 From: kickoffqi Date: Sat, 3 Jan 2026 16:42:30 +1100 Subject: [PATCH 02/12] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_kickoff-k8s.yml | 76 ++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 .github/workflows/master_kickoff-k8s.yml diff --git a/.github/workflows/master_kickoff-k8s.yml b/.github/workflows/master_kickoff-k8s.yml new file mode 100644 index 0000000..e2e48bb --- /dev/null +++ b/.github/workflows/master_kickoff-k8s.yml @@ -0,0 +1,76 @@ +# 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 - kickoff-k8s + +on: + push: + branches: + - master + 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.14' + + # 🛠️ Local Build Section (Optional) + # The following section in your workflow is designed to catch build issues early on the client side, before deployment. This can be helpful for debugging and validation. However, if this step significantly increases deployment time and early detection is not critical for your workflow, you may remove this section to streamline the deployment process. + - name: Create and Start virtual environment and Install dependencies + run: | + python -m venv antenv + source antenv/bin/activate + pip install -r requirements.txt + + # By default, when you enable GitHub CI/CD integration through the Azure portal, the platform automatically sets the SCM_DO_BUILD_DURING_DEPLOYMENT application setting to true. This triggers the use of Oryx, a build engine that handles application compilation and dependency installation (e.g., pip install) directly on the platform during deployment. Hence, we exclude the antenv virtual environment directory from the deployment artifact to reduce the payload size. + - name: Upload artifact for deployment jobs + uses: actions/upload-artifact@v4 + with: + name: python-app + path: | + . + !antenv/ + + # 🚫 Opting Out of Oryx Build + # If you prefer to disable the Oryx build process during deployment, follow these steps: + # 1. Remove the SCM_DO_BUILD_DURING_DEPLOYMENT app setting from your Azure App Service Environment variables. + # 2. Refer to sample workflows for alternative deployment strategies: https://github.com/Azure/actions-workflow-samples/tree/master/AppService + + + deploy: + runs-on: ubuntu-latest + needs: build + permissions: + id-token: write #This is required for requesting the JWT + contents: read #This is required for actions/checkout + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v4 + with: + name: python-app + + - name: Login to Azure + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_7319F6D8E17743BDB139DC1A4C78A07F }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_2C8818247AA04A37BE8A6E3C38422F23 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_CE9733E958154664AE7A9FF4CA7064AE }} + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v3 + id: deploy-to-webapp + with: + app-name: 'kickoff-k8s' + slot-name: 'Production' + \ No newline at end of file From 6dc26037c084989c1eeea2abdbc52f964d43d1d5 Mon Sep 17 00:00:00 2001 From: kickoffqi Date: Sat, 3 Jan 2026 16:44:36 +1100 Subject: [PATCH 03/12] Remove the Azure App Service build and deployment workflow config --- .github/workflows/master_kickoff-k8s.yml | 76 ------------------------ 1 file changed, 76 deletions(-) delete mode 100644 .github/workflows/master_kickoff-k8s.yml diff --git a/.github/workflows/master_kickoff-k8s.yml b/.github/workflows/master_kickoff-k8s.yml deleted file mode 100644 index e2e48bb..0000000 --- a/.github/workflows/master_kickoff-k8s.yml +++ /dev/null @@ -1,76 +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 - kickoff-k8s - -on: - push: - branches: - - master - 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.14' - - # 🛠️ Local Build Section (Optional) - # The following section in your workflow is designed to catch build issues early on the client side, before deployment. This can be helpful for debugging and validation. However, if this step significantly increases deployment time and early detection is not critical for your workflow, you may remove this section to streamline the deployment process. - - name: Create and Start virtual environment and Install dependencies - run: | - python -m venv antenv - source antenv/bin/activate - pip install -r requirements.txt - - # By default, when you enable GitHub CI/CD integration through the Azure portal, the platform automatically sets the SCM_DO_BUILD_DURING_DEPLOYMENT application setting to true. This triggers the use of Oryx, a build engine that handles application compilation and dependency installation (e.g., pip install) directly on the platform during deployment. Hence, we exclude the antenv virtual environment directory from the deployment artifact to reduce the payload size. - - name: Upload artifact for deployment jobs - uses: actions/upload-artifact@v4 - with: - name: python-app - path: | - . - !antenv/ - - # 🚫 Opting Out of Oryx Build - # If you prefer to disable the Oryx build process during deployment, follow these steps: - # 1. Remove the SCM_DO_BUILD_DURING_DEPLOYMENT app setting from your Azure App Service Environment variables. - # 2. Refer to sample workflows for alternative deployment strategies: https://github.com/Azure/actions-workflow-samples/tree/master/AppService - - - deploy: - runs-on: ubuntu-latest - needs: build - permissions: - id-token: write #This is required for requesting the JWT - contents: read #This is required for actions/checkout - - steps: - - name: Download artifact from build job - uses: actions/download-artifact@v4 - with: - name: python-app - - - name: Login to Azure - uses: azure/login@v2 - with: - client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_7319F6D8E17743BDB139DC1A4C78A07F }} - tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_2C8818247AA04A37BE8A6E3C38422F23 }} - subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_CE9733E958154664AE7A9FF4CA7064AE }} - - - name: 'Deploy to Azure Web App' - uses: azure/webapps-deploy@v3 - id: deploy-to-webapp - with: - app-name: 'kickoff-k8s' - slot-name: 'Production' - \ No newline at end of file From 28ca58d2070e74d345b48b00078f38c7312516d7 Mon Sep 17 00:00:00 2001 From: kickoffqi Date: Sat, 3 Jan 2026 16:49:50 +1100 Subject: [PATCH 04/12] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_kickoff-k8s.yml | 76 ++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 .github/workflows/master_kickoff-k8s.yml diff --git a/.github/workflows/master_kickoff-k8s.yml b/.github/workflows/master_kickoff-k8s.yml new file mode 100644 index 0000000..987eda3 --- /dev/null +++ b/.github/workflows/master_kickoff-k8s.yml @@ -0,0 +1,76 @@ +# 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 - kickoff-k8s + +on: + push: + branches: + - master + 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.14' + + # 🛠️ Local Build Section (Optional) + # The following section in your workflow is designed to catch build issues early on the client side, before deployment. This can be helpful for debugging and validation. However, if this step significantly increases deployment time and early detection is not critical for your workflow, you may remove this section to streamline the deployment process. + - name: Create and Start virtual environment and Install dependencies + run: | + python -m venv antenv + source antenv/bin/activate + pip install -r requirements.txt + + # By default, when you enable GitHub CI/CD integration through the Azure portal, the platform automatically sets the SCM_DO_BUILD_DURING_DEPLOYMENT application setting to true. This triggers the use of Oryx, a build engine that handles application compilation and dependency installation (e.g., pip install) directly on the platform during deployment. Hence, we exclude the antenv virtual environment directory from the deployment artifact to reduce the payload size. + - name: Upload artifact for deployment jobs + uses: actions/upload-artifact@v4 + with: + name: python-app + path: | + . + !antenv/ + + # 🚫 Opting Out of Oryx Build + # If you prefer to disable the Oryx build process during deployment, follow these steps: + # 1. Remove the SCM_DO_BUILD_DURING_DEPLOYMENT app setting from your Azure App Service Environment variables. + # 2. Refer to sample workflows for alternative deployment strategies: https://github.com/Azure/actions-workflow-samples/tree/master/AppService + + + deploy: + runs-on: ubuntu-latest + needs: build + permissions: + id-token: write #This is required for requesting the JWT + contents: read #This is required for actions/checkout + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v4 + with: + name: python-app + + - name: Login to Azure + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_36EE29AB2FBC42D5A9A0A3E17A440346 }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_E281EFFDB2674A3580C8D9157072E1D8 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_B7DD9C1C5DB84D16A34F7376939838EB }} + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v3 + id: deploy-to-webapp + with: + app-name: 'kickoff-k8s' + slot-name: 'Production' + \ No newline at end of file From 8fcb7d677718ca54dd2f8119e60620eddc4b8361 Mon Sep 17 00:00:00 2001 From: kickoffqi Date: Sat, 3 Jan 2026 16:52:19 +1100 Subject: [PATCH 05/12] Refactor Azure deployment workflow for Python app --- .github/workflows/master_kickoff-k8s.yml | 33 ++++++++++-------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/.github/workflows/master_kickoff-k8s.yml b/.github/workflows/master_kickoff-k8s.yml index 987eda3..abe3884 100644 --- a/.github/workflows/master_kickoff-k8s.yml +++ b/.github/workflows/master_kickoff-k8s.yml @@ -23,15 +23,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.14' - - # 🛠️ Local Build Section (Optional) - # The following section in your workflow is designed to catch build issues early on the client side, before deployment. This can be helpful for debugging and validation. However, if this step significantly increases deployment time and early detection is not critical for your workflow, you may remove this section to streamline the deployment process. - - name: Create and Start virtual environment and Install dependencies - run: | - python -m venv antenv - source antenv/bin/activate - pip install -r requirements.txt - + # By default, when you enable GitHub CI/CD integration through the Azure portal, the platform automatically sets the SCM_DO_BUILD_DURING_DEPLOYMENT application setting to true. This triggers the use of Oryx, a build engine that handles application compilation and dependency installation (e.g., pip install) directly on the platform during deployment. Hence, we exclude the antenv virtual environment directory from the deployment artifact to reduce the payload size. - name: Upload artifact for deployment jobs uses: actions/upload-artifact@v4 @@ -50,22 +42,22 @@ jobs: deploy: runs-on: ubuntu-latest needs: build - permissions: - id-token: write #This is required for requesting the JWT - contents: read #This is required for actions/checkout + permissions: + id-token: write #This is required for requesting the JWT + contents: read #This is required for actions/checkout steps: - name: Download artifact from build job uses: actions/download-artifact@v4 with: name: python-app - - - name: Login to Azure - uses: azure/login@v2 - with: - client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_36EE29AB2FBC42D5A9A0A3E17A440346 }} - tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_E281EFFDB2674A3580C8D9157072E1D8 }} - subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_B7DD9C1C5DB84D16A34F7376939838EB }} + + - name: Login to Azure + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_36EE29AB2FBC42D5A9A0A3E17A440346 }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_E281EFFDB2674A3580C8D9157072E1D8 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_B7DD9C1C5DB84D16A34F7376939838EB }} - name: 'Deploy to Azure Web App' uses: azure/webapps-deploy@v3 @@ -73,4 +65,5 @@ jobs: with: app-name: 'kickoff-k8s' slot-name: 'Production' - \ No newline at end of file + + From 9ed3310daea3ee1f9d5a40bdd061af0767e601dc Mon Sep 17 00:00:00 2001 From: kickoffqi Date: Sat, 3 Jan 2026 16:57:53 +1100 Subject: [PATCH 06/12] Update welcome message to include 'Hello, World!' --- app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.py b/app.py index 35e236d..6448aae 100644 --- a/app.py +++ b/app.py @@ -1,4 +1,3 @@ -import os from flask import Flask app = Flask(__name__) @@ -6,7 +5,7 @@ @app.route("/") def main(): - return "Welcome!" + return "Welcome! Hello, World!" @app.route('/how are you') def hello(): From 87ed8b3189641504d90a2dcd6bf59efe64544d3a Mon Sep 17 00:00:00 2001 From: kickoffqi Date: Sat, 3 Jan 2026 17:43:25 +1100 Subject: [PATCH 07/12] Add or update the Azure App Service build and deployment workflow config --- .../workflows/master_kickoff-k8s(staging).yml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 .github/workflows/master_kickoff-k8s(staging).yml diff --git a/.github/workflows/master_kickoff-k8s(staging).yml b/.github/workflows/master_kickoff-k8s(staging).yml new file mode 100644 index 0000000..83ec43d --- /dev/null +++ b/.github/workflows/master_kickoff-k8s(staging).yml @@ -0,0 +1,76 @@ +# 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 - kickoff-k8s + +on: + push: + branches: + - master + 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.14' + + # 🛠️ Local Build Section (Optional) + # The following section in your workflow is designed to catch build issues early on the client side, before deployment. This can be helpful for debugging and validation. However, if this step significantly increases deployment time and early detection is not critical for your workflow, you may remove this section to streamline the deployment process. + - name: Create and Start virtual environment and Install dependencies + run: | + python -m venv antenv + source antenv/bin/activate + pip install -r requirements.txt + + # By default, when you enable GitHub CI/CD integration through the Azure portal, the platform automatically sets the SCM_DO_BUILD_DURING_DEPLOYMENT application setting to true. This triggers the use of Oryx, a build engine that handles application compilation and dependency installation (e.g., pip install) directly on the platform during deployment. Hence, we exclude the antenv virtual environment directory from the deployment artifact to reduce the payload size. + - name: Upload artifact for deployment jobs + uses: actions/upload-artifact@v4 + with: + name: python-app + path: | + . + !antenv/ + + # 🚫 Opting Out of Oryx Build + # If you prefer to disable the Oryx build process during deployment, follow these steps: + # 1. Remove the SCM_DO_BUILD_DURING_DEPLOYMENT app setting from your Azure App Service Environment variables. + # 2. Refer to sample workflows for alternative deployment strategies: https://github.com/Azure/actions-workflow-samples/tree/master/AppService + + + deploy: + runs-on: ubuntu-latest + needs: build + permissions: + id-token: write #This is required for requesting the JWT + contents: read #This is required for actions/checkout + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v4 + with: + name: python-app + + - name: Login to Azure + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_D245DCEE846942C2A7F057D6D97C3F5F }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_FEA5A2F6E7F54553AB4F6810B24AB9F7 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_A2F5277934054B7C95F74E1D02780453 }} + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v3 + id: deploy-to-webapp + with: + app-name: 'kickoff-k8s' + slot-name: 'staging' + \ No newline at end of file From f4375f8e6751b260773ce559f8cdcd55a8ce7280 Mon Sep 17 00:00:00 2001 From: kickoffqi Date: Sat, 3 Jan 2026 17:44:02 +1100 Subject: [PATCH 08/12] Refactor Azure deployment workflow for Python app --- .../workflows/master_kickoff-k8s(staging).yml | 31 +++++++------------ 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/.github/workflows/master_kickoff-k8s(staging).yml b/.github/workflows/master_kickoff-k8s(staging).yml index 83ec43d..1cc2af2 100644 --- a/.github/workflows/master_kickoff-k8s(staging).yml +++ b/.github/workflows/master_kickoff-k8s(staging).yml @@ -23,14 +23,6 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.14' - - # 🛠️ Local Build Section (Optional) - # The following section in your workflow is designed to catch build issues early on the client side, before deployment. This can be helpful for debugging and validation. However, if this step significantly increases deployment time and early detection is not critical for your workflow, you may remove this section to streamline the deployment process. - - name: Create and Start virtual environment and Install dependencies - run: | - python -m venv antenv - source antenv/bin/activate - pip install -r requirements.txt # By default, when you enable GitHub CI/CD integration through the Azure portal, the platform automatically sets the SCM_DO_BUILD_DURING_DEPLOYMENT application setting to true. This triggers the use of Oryx, a build engine that handles application compilation and dependency installation (e.g., pip install) directly on the platform during deployment. Hence, we exclude the antenv virtual environment directory from the deployment artifact to reduce the payload size. - name: Upload artifact for deployment jobs @@ -50,22 +42,22 @@ jobs: deploy: runs-on: ubuntu-latest needs: build - permissions: - id-token: write #This is required for requesting the JWT - contents: read #This is required for actions/checkout + permissions: + id-token: write #This is required for requesting the JWT + contents: read #This is required for actions/checkout steps: - name: Download artifact from build job uses: actions/download-artifact@v4 with: name: python-app - - - name: Login to Azure - uses: azure/login@v2 - with: - client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_D245DCEE846942C2A7F057D6D97C3F5F }} - tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_FEA5A2F6E7F54553AB4F6810B24AB9F7 }} - subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_A2F5277934054B7C95F74E1D02780453 }} + + - name: Login to Azure + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_D245DCEE846942C2A7F057D6D97C3F5F }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_FEA5A2F6E7F54553AB4F6810B24AB9F7 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_A2F5277934054B7C95F74E1D02780453 }} - name: 'Deploy to Azure Web App' uses: azure/webapps-deploy@v3 @@ -73,4 +65,5 @@ jobs: with: app-name: 'kickoff-k8s' slot-name: 'staging' - \ No newline at end of file + + From 8a8500a4d38fe19ed4eb4ac22d132109a06eeb65 Mon Sep 17 00:00:00 2001 From: kickoffqi Date: Sat, 3 Jan 2026 17:48:22 +1100 Subject: [PATCH 09/12] Change deployment branch from master to staging --- .github/workflows/master_kickoff-k8s(staging).yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/master_kickoff-k8s(staging).yml b/.github/workflows/master_kickoff-k8s(staging).yml index 1cc2af2..2f0ab52 100644 --- a/.github/workflows/master_kickoff-k8s(staging).yml +++ b/.github/workflows/master_kickoff-k8s(staging).yml @@ -7,7 +7,7 @@ name: Build and deploy Python app to Azure Web App - kickoff-k8s on: push: branches: - - master + - staging workflow_dispatch: jobs: @@ -67,3 +67,4 @@ jobs: slot-name: 'staging' + From 3e83e09aed22d44fc8f3849ebc808b4204e2bc90 Mon Sep 17 00:00:00 2001 From: kickoffqi Date: Sat, 3 Jan 2026 18:42:45 +1100 Subject: [PATCH 10/12] Fix formatting issues in master_kickoff-k8s.yml --- .github/workflows/master_kickoff-k8s.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/master_kickoff-k8s.yml b/.github/workflows/master_kickoff-k8s.yml index abe3884..28723f6 100644 --- a/.github/workflows/master_kickoff-k8s.yml +++ b/.github/workflows/master_kickoff-k8s.yml @@ -55,9 +55,9 @@ jobs: - name: Login to Azure uses: azure/login@v2 with: - client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_36EE29AB2FBC42D5A9A0A3E17A440346 }} - tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_E281EFFDB2674A3580C8D9157072E1D8 }} - subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_B7DD9C1C5DB84D16A34F7376939838EB }} + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - name: 'Deploy to Azure Web App' uses: azure/webapps-deploy@v3 @@ -67,3 +67,4 @@ jobs: slot-name: 'Production' + From 5e4eedbe94356965eab674638638c71526edff28 Mon Sep 17 00:00:00 2001 From: kickoffqi Date: Sat, 3 Jan 2026 20:16:05 +1100 Subject: [PATCH 11/12] Update Azure Web App deployment workflow --- .github/workflows/master_kickoff-k8s.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/master_kickoff-k8s.yml b/.github/workflows/master_kickoff-k8s.yml index 28723f6..8081b00 100644 --- a/.github/workflows/master_kickoff-k8s.yml +++ b/.github/workflows/master_kickoff-k8s.yml @@ -55,9 +55,9 @@ jobs: - name: Login to Azure uses: azure/login@v2 with: - client-id: ${{ secrets.AZURE_CLIENT_ID }} - tenant-id: ${{ secrets.AZURE_TENANT_ID }} - subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_36EE29AB2FBC42D5A9A0A3E17A440346 }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_E281EFFDB2674A3580C8D9157072E1D8 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_B7DD9C1C5DB84D16A34F7376939838EB }} - name: 'Deploy to Azure Web App' uses: azure/webapps-deploy@v3 @@ -68,3 +68,4 @@ jobs: + From eaf8326b5d25e419da9b3fdb71f8c53c7c63a018 Mon Sep 17 00:00:00 2001 From: kickoffqi Date: Sat, 3 Jan 2026 20:18:20 +1100 Subject: [PATCH 12/12] Remove the Azure App Service build and deployment workflow config --- .../workflows/master_kickoff-k8s(staging).yml | 70 ------------------- 1 file changed, 70 deletions(-) delete mode 100644 .github/workflows/master_kickoff-k8s(staging).yml diff --git a/.github/workflows/master_kickoff-k8s(staging).yml b/.github/workflows/master_kickoff-k8s(staging).yml deleted file mode 100644 index 2f0ab52..0000000 --- a/.github/workflows/master_kickoff-k8s(staging).yml +++ /dev/null @@ -1,70 +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 - kickoff-k8s - -on: - push: - branches: - - staging - 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.14' - - # By default, when you enable GitHub CI/CD integration through the Azure portal, the platform automatically sets the SCM_DO_BUILD_DURING_DEPLOYMENT application setting to true. This triggers the use of Oryx, a build engine that handles application compilation and dependency installation (e.g., pip install) directly on the platform during deployment. Hence, we exclude the antenv virtual environment directory from the deployment artifact to reduce the payload size. - - name: Upload artifact for deployment jobs - uses: actions/upload-artifact@v4 - with: - name: python-app - path: | - . - !antenv/ - - # 🚫 Opting Out of Oryx Build - # If you prefer to disable the Oryx build process during deployment, follow these steps: - # 1. Remove the SCM_DO_BUILD_DURING_DEPLOYMENT app setting from your Azure App Service Environment variables. - # 2. Refer to sample workflows for alternative deployment strategies: https://github.com/Azure/actions-workflow-samples/tree/master/AppService - - - deploy: - runs-on: ubuntu-latest - needs: build - permissions: - id-token: write #This is required for requesting the JWT - contents: read #This is required for actions/checkout - - steps: - - name: Download artifact from build job - uses: actions/download-artifact@v4 - with: - name: python-app - - - name: Login to Azure - uses: azure/login@v2 - with: - client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_D245DCEE846942C2A7F057D6D97C3F5F }} - tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_FEA5A2F6E7F54553AB4F6810B24AB9F7 }} - subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_A2F5277934054B7C95F74E1D02780453 }} - - - name: 'Deploy to Azure Web App' - uses: azure/webapps-deploy@v3 - id: deploy-to-webapp - with: - app-name: 'kickoff-k8s' - slot-name: 'staging' - - -