From 318c5f5bb0a218c1cca20c7319e814194739d637 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Mon, 25 May 2026 13:14:28 +0530 Subject: [PATCH 01/10] Initial commit --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 000000000..09c2f40e7 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# tery \ No newline at end of file From ef00fab85f0dc3130655d3489c721f26d56d639e Mon Sep 17 00:00:00 2001 From: Abhishek Date: Mon, 25 May 2026 08:55:39 +0000 Subject: [PATCH 02/10] Add pipeline code --- LearningDevOps/README.md | 4 +++ LearningDevOps/azure-pipelines.yml | 50 ++++++++++++++++++++++++++++++ LearningDevOps/note.txt | 17 ++++++++++ LearningDevOps/requirements.txt | 3 ++ 4 files changed, 74 insertions(+) create mode 100644 LearningDevOps/README.md create mode 100644 LearningDevOps/azure-pipelines.yml create mode 100644 LearningDevOps/note.txt create mode 100644 LearningDevOps/requirements.txt diff --git a/LearningDevOps/README.md b/LearningDevOps/README.md new file mode 100644 index 000000000..0a72f69f7 --- /dev/null +++ b/LearningDevOps/README.md @@ -0,0 +1,4 @@ +# LearningDevOps +ALL learning of devops will be right here. + +hey rahul \ No newline at end of file diff --git a/LearningDevOps/azure-pipelines.yml b/LearningDevOps/azure-pipelines.yml new file mode 100644 index 000000000..772211d63 --- /dev/null +++ b/LearningDevOps/azure-pipelines.yml @@ -0,0 +1,50 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: +- main + +pool: + vmImage: ubuntu-latest + +strategy: + matrix: + python310: + python.version: '3.10' + python311: + python.version: '3.11' + python312: + python.version: '3.12' + +steps: +- task: UsePythonVersion@0 + inputs: + versionSpec: '$(python.version)' + displayName: 'use python $(python.version)' + +- script: | + python -m pip install --upgrade pip + pip install -r requirements.txt + displayName: 'Install Dependencies' + +- task: ArchiveFiles@2 + displayName: 'Archive Files' + inputs: + rootFolderOrFile: $(System.DefaultWorkingDirectory) + includeRootFolder: false + archiveType: zip + archiveFile: $(Build.ArtifactStagingDirectory)/$(Build.BuildId)-$(python.version).zip + replaceExistingArchive: true + +- task: PublishBuildArtifacts@1 + inputs: + PathtoPublish: '$(Build.ArtifactStagingDirectory)' + ArtifactName: 'drop' + publishLocation: 'Container' + +- script: | + pip install pytest pytest-azurepipelines + pytest + displayName: 'pytest' diff --git a/LearningDevOps/note.txt b/LearningDevOps/note.txt new file mode 100644 index 000000000..c069890d1 --- /dev/null +++ b/LearningDevOps/note.txt @@ -0,0 +1,17 @@ +commit ca93958802b25974073c523bb3867731981d0b3f (HEAD -> main, origin/main, origin/dev, origin/HEAD, test, dev) +Author: Abhishek +Date: Tue May 19 05:59:41 2026 +0000 + + Made changes in note.txt file + +commit 72c4f94a449759d6d7e25e7b8f33e8738faaeace +Author: Abhishek +Date: Tue May 19 05:52:37 2026 +0000 + + Setting up Platform + +commit 3ec51231c91012ae805632d87be697d25fd64b41 +Author: Abhishek +Date: Fri May 15 01:17:14 2026 +0530 + + Initial commit diff --git a/LearningDevOps/requirements.txt b/LearningDevOps/requirements.txt new file mode 100644 index 000000000..92e7eb0b7 --- /dev/null +++ b/LearningDevOps/requirements.txt @@ -0,0 +1,3 @@ +azure-cli==2.60.0 +pytest==8.2.0 +requests==2.31.0 From 620b39d573d97b48dc6e9babd75b1e8559167285 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Mon, 25 May 2026 09:08:20 +0000 Subject: [PATCH 03/10] pipeline added --- LearningDevOps/requirements.txt => requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename LearningDevOps/requirements.txt => requirements.txt (65%) diff --git a/LearningDevOps/requirements.txt b/requirements.txt similarity index 65% rename from LearningDevOps/requirements.txt rename to requirements.txt index 92e7eb0b7..f52cce264 100644 --- a/LearningDevOps/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ azure-cli==2.60.0 pytest==8.2.0 -requests==2.31.0 +requests==2.31.0 \ No newline at end of file From 9387218d03f48b5f57192414220c73d25f9b7a39 Mon Sep 17 00:00:00 2001 From: Rahul Date: Mon, 25 May 2026 15:08:19 +0530 Subject: [PATCH 04/10] WIP(Added sample test file) --- test_sample.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 test_sample.py diff --git a/test_sample.py b/test_sample.py new file mode 100644 index 000000000..d2cd73cb2 --- /dev/null +++ b/test_sample.py @@ -0,0 +1,2 @@ +def test_basic(): + assert True \ No newline at end of file From 41a7ae4e8b6fab23d62022be62bd3eed09a855b7 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 26 May 2026 14:06:11 +0530 Subject: [PATCH 05/10] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 81 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..5e2d9f265 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,81 @@ +trigger: +- main + +variables: + # Azure Resource Manager connection created during pipeline creation + azureServiceConnectionId: '' + + # Web app name + webAppName: '' + + # Agent VM image name + vmImageName: 'ubuntu-latest' + + # Environment name + environmentName: '' + + # 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 setuptools + 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 : $(webAppName)' + inputs: + azureSubscription: $(azureServiceConnectionId) + appName: $(webAppName) + package: $(Pipeline.Workspace)/drop/$(Build.BuildId).zip \ No newline at end of file From 90f581677ea56f32164f77c0687cae72b53f505e Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 26 May 2026 14:13:59 +0530 Subject: [PATCH 06/10] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5e2d9f265..b6064b059 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,16 +3,16 @@ trigger: variables: # Azure Resource Manager connection created during pipeline creation - azureServiceConnectionId: '' + azureServiceConnectionId: '01fcb7bf-3c1d-44ee-9116-c74c89bb26db' # Web app name - webAppName: '' + webAppName: 'abhiappPY' # Agent VM image name vmImageName: 'ubuntu-latest' # Environment name - environmentName: '' + environmentName: 'abhiappPY' # Project root folder. Point to the folder containing manage.py file. projectRoot: $(System.DefaultWorkingDirectory) From 9dda64743df1604a9a722c69a7836f7c588e00d8 Mon Sep 17 00:00:00 2001 From: Rahul Date: Tue, 26 May 2026 14:52:29 +0530 Subject: [PATCH 07/10] WIP(Changes Home page) --- test1/python-sample-vscode-flask-tutorial | 1 + 1 file changed, 1 insertion(+) create mode 160000 test1/python-sample-vscode-flask-tutorial diff --git a/test1/python-sample-vscode-flask-tutorial b/test1/python-sample-vscode-flask-tutorial new file mode 160000 index 000000000..90f581677 --- /dev/null +++ b/test1/python-sample-vscode-flask-tutorial @@ -0,0 +1 @@ +Subproject commit 90f581677ea56f32164f77c0687cae72b53f505e From 96fac3e090bbcdff9430b4ae46e3b89adf0d24cb Mon Sep 17 00:00:00 2001 From: Rahul Date: Tue, 26 May 2026 15:48:00 +0530 Subject: [PATCH 08/10] Update subproject commit to indicate dirty state --- test1/python-sample-vscode-flask-tutorial | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test1/python-sample-vscode-flask-tutorial b/test1/python-sample-vscode-flask-tutorial index 90f581677..1debe35e1 160000 --- a/test1/python-sample-vscode-flask-tutorial +++ b/test1/python-sample-vscode-flask-tutorial @@ -1 +1 @@ -Subproject commit 90f581677ea56f32164f77c0687cae72b53f505e +Subproject commit 1debe35e1e4dedfc0e494c403a638623492684ab From 0964f16437e1227aef894aa1ad17dc96dae5daed Mon Sep 17 00:00:00 2001 From: Rahul Date: Tue, 26 May 2026 16:00:45 +0530 Subject: [PATCH 09/10] Update submodule reference after resolving merge --- test1/python-sample-vscode-flask-tutorial | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test1/python-sample-vscode-flask-tutorial b/test1/python-sample-vscode-flask-tutorial index 1debe35e1..3f1fcce1b 160000 --- a/test1/python-sample-vscode-flask-tutorial +++ b/test1/python-sample-vscode-flask-tutorial @@ -1 +1 @@ -Subproject commit 1debe35e1e4dedfc0e494c403a638623492684ab +Subproject commit 3f1fcce1b69b77a9c35a9d984f6163604bb052ae From fa6b1c072bec790b4861bdbc2bae21515646b106 Mon Sep 17 00:00:00 2001 From: Rahul Date: Tue, 26 May 2026 16:01:47 +0530 Subject: [PATCH 10/10] Update submodule reference after resolving rebase --- test1/python-sample-vscode-flask-tutorial | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test1/python-sample-vscode-flask-tutorial b/test1/python-sample-vscode-flask-tutorial index 3f1fcce1b..d7784cc39 160000 --- a/test1/python-sample-vscode-flask-tutorial +++ b/test1/python-sample-vscode-flask-tutorial @@ -1 +1 @@ -Subproject commit 3f1fcce1b69b77a9c35a9d984f6163604bb052ae +Subproject commit d7784cc399cc63d74e2e5759f111c01f646c7841