From af78e4730a5c9261960c38dec9b00bc79da2f682 Mon Sep 17 00:00:00 2001 From: "victor.onyia.o@gmail.com" Date: Fri, 30 Aug 2024 09:23:26 +0100 Subject: [PATCH 1/7] update --- hello_app/templates/home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_app/templates/home.html b/hello_app/templates/home.html index 95609fecd..3ab677ceb 100644 --- a/hello_app/templates/home.html +++ b/hello_app/templates/home.html @@ -3,5 +3,5 @@ Home {% endblock %} {% block content %} -

Home page for the Visual Studio Code Flask tutorial.

+

Home page for the Visual Studio Code Flask tutorials.

{% endblock %} From 03d026a55d463e55f9286e34edbbb2d96442422d Mon Sep 17 00:00:00 2001 From: "victor.onyia.o@gmail.com" Date: Fri, 30 Aug 2024 09:29:36 +0100 Subject: [PATCH 2/7] update --- hello_app/templates/home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_app/templates/home.html b/hello_app/templates/home.html index 3ab677ceb..95609fecd 100644 --- a/hello_app/templates/home.html +++ b/hello_app/templates/home.html @@ -3,5 +3,5 @@ Home {% endblock %} {% block content %} -

Home page for the Visual Studio Code Flask tutorials.

+

Home page for the Visual Studio Code Flask tutorial.

{% endblock %} From 9b28ef7be65f620869d2d60b4285780c0b219bc7 Mon Sep 17 00:00:00 2001 From: "victor.onyia.o@gmail.com" Date: Fri, 30 Aug 2024 09:44:16 +0100 Subject: [PATCH 3/7] update --- hello_app/templates/home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_app/templates/home.html b/hello_app/templates/home.html index 95609fecd..3ab677ceb 100644 --- a/hello_app/templates/home.html +++ b/hello_app/templates/home.html @@ -3,5 +3,5 @@ Home {% endblock %} {% block content %} -

Home page for the Visual Studio Code Flask tutorial.

+

Home page for the Visual Studio Code Flask tutorials.

{% endblock %} From 13d2c5d225d25f4b553f0868b09b35ed3f42cf5e Mon Sep 17 00:00:00 2001 From: Vectorjay Date: Wed, 18 Sep 2024 16:36:47 +0100 Subject: [PATCH 4/7] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 86 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..a37410968 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,86 @@ +# Python to Linux Web App on Azure +# Build your Python project and deploy it to Azure as a Linux Web App. +# Change python version to one thats appropriate for your application. +# https://docs.microsoft.com/azure/devops/pipelines/languages/python + +trigger: +- main + +variables: + # Azure Resource Manager connection created during pipeline creation + azureServiceConnectionId: 'ecc9f15d-a049-4bbd-953a-9becee6430b2' + + # Web app name + webAppName: 'test40me' + + # Agent VM image name + vmImageName: 'ubuntu-latest' + + # Environment name + environmentName: 'test40me' + + # Project root folder. Point to the folder containing manage.py file. + projectRoot: $(System.DefaultWorkingDirectory) + + pythonVersion: '3.11' + +stages: +- stage: Build + displayName: Build stage + jobs: + - job: BuildJob + pool: + vmImage: $(vmImageName) + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: '$(pythonVersion)' + displayName: 'Use Python $(pythonVersion)' + + - script: | + python -m venv antenv + source antenv/bin/activate + python -m pip install --upgrade pip + pip install setup + pip install -r requirements.txt + workingDirectory: $(projectRoot) + displayName: "Install requirements" + + - task: ArchiveFiles@2 + displayName: 'Archive files' + inputs: + rootFolderOrFile: '$(projectRoot)' + includeRootFolder: false + archiveType: zip + archiveFile: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip + replaceExistingArchive: true + + - upload: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip + displayName: 'Upload package' + artifact: drop + +- stage: Deploy + displayName: 'Deploy Web App' + dependsOn: Build + condition: succeeded() + jobs: + - deployment: DeploymentJob + pool: + vmImage: $(vmImageName) + environment: $(environmentName) + strategy: + runOnce: + deploy: + steps: + + - task: UsePythonVersion@0 + inputs: + versionSpec: '$(pythonVersion)' + displayName: 'Use Python version' + + - task: AzureWebApp@1 + displayName: 'Deploy Azure Web App : test40me' + inputs: + azureSubscription: $(azureServiceConnectionId) + appName: $(webAppName) + package: $(Pipeline.Workspace)/drop/$(Build.BuildId).zip \ No newline at end of file From 20655f914ea9dc68b7bfc438c84c2c4f1541ab51 Mon Sep 17 00:00:00 2001 From: Vectorjay Date: Wed, 18 Sep 2024 16:48:29 +0100 Subject: [PATCH 5/7] Update about.html --- hello_app/templates/about.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_app/templates/about.html b/hello_app/templates/about.html index 8611b6414..8b6fa9b34 100644 --- a/hello_app/templates/about.html +++ b/hello_app/templates/about.html @@ -3,5 +3,5 @@ About us {% endblock %} {% block content %} -

About page for the Visual Studio Code Flask tutorial.

+

About page for the Visual Studio Code Flask tutorialss.

{% endblock %} From 096115afa00723c7884db8d61bb6ebf20da91c4a Mon Sep 17 00:00:00 2001 From: Vectorjay Date: Wed, 18 Sep 2024 16:52:51 +0100 Subject: [PATCH 6/7] Update about.html --- hello_app/templates/about.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_app/templates/about.html b/hello_app/templates/about.html index 8b6fa9b34..8611b6414 100644 --- a/hello_app/templates/about.html +++ b/hello_app/templates/about.html @@ -3,5 +3,5 @@ About us {% endblock %} {% block content %} -

About page for the Visual Studio Code Flask tutorialss.

+

About page for the Visual Studio Code Flask tutorial.

{% endblock %} From ec7aebb149e6dabe6b72fa8277eac04b42859750 Mon Sep 17 00:00:00 2001 From: Vectorjay Date: Wed, 18 Sep 2024 16:56:32 +0100 Subject: [PATCH 7/7] Update about.html --- hello_app/templates/about.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_app/templates/about.html b/hello_app/templates/about.html index 8611b6414..3e975cf58 100644 --- a/hello_app/templates/about.html +++ b/hello_app/templates/about.html @@ -3,5 +3,5 @@ About us {% endblock %} {% block content %} -

About page for the Visual Studio Code Flask tutorial.

+

Keep pushing for consistency super charge

{% endblock %}