From 51e81693835fd749e66f1b08ce47cae302ff79f2 Mon Sep 17 00:00:00 2001 From: Dayenne Souza Date: Mon, 7 Apr 2025 16:11:39 -0300 Subject: [PATCH 1/4] add vsts deploy file for un ified search app --- unified-search-app/vsts.yml | 64 +++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 unified-search-app/vsts.yml diff --git a/unified-search-app/vsts.yml b/unified-search-app/vsts.yml new file mode 100644 index 0000000000..3563d28a39 --- /dev/null +++ b/unified-search-app/vsts.yml @@ -0,0 +1,64 @@ +name: unified-search-app +pool: + vmImage: ubuntu-latest + +trigger: + batch: true + branches: + include: + - main + path: + include: + - unified-search-app + + +stages: + - stage: Compliance + dependsOn: [] + jobs: + - job: compliance + displayName: Compliance + pool: + vmImage: windows-latest + steps: + - task: CredScan@3 + inputs: + outputFormat: sarif + debugMode: false + + - task: ComponentGovernanceComponentDetection@0 + inputs: + scanType: "Register" + verbosity: "Verbose" + alertWarningLevel: "High" + + - task: PublishSecurityAnalysisLogs@3 + inputs: + ArtifactName: "CodeAnalysisLogs" + ArtifactType: "Container" + + - stage: Build_deploy + dependsOn: [] + jobs: + - job: build + displayName: Build and deploy + pool: + vmImage: ubuntu-latest + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: "3.11" + displayName: "Use Python 3.11" + + - task: Docker@2 + inputs: + containerRegistry: '$(containerRegistry)' + repository: 'main' + command: 'buildAndPush' + Dockerfile: 'Dockerfile' + tags: 'latest' + - task: AzureAppServiceManage@0 + inputs: + azureSubscription: '$(subscription)' + Action: 'Restart Azure App Service' + WebAppName: '$(webApp)' \ No newline at end of file From a70f15fe48e6682b778d2bf82923958187a9c3a0 Mon Sep 17 00:00:00 2001 From: Dayenne Souza Date: Mon, 7 Apr 2025 16:27:25 -0300 Subject: [PATCH 2/4] fix file name --- unified-search-app/.vsts-ci.yml | 64 +++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 unified-search-app/.vsts-ci.yml diff --git a/unified-search-app/.vsts-ci.yml b/unified-search-app/.vsts-ci.yml new file mode 100644 index 0000000000..3563d28a39 --- /dev/null +++ b/unified-search-app/.vsts-ci.yml @@ -0,0 +1,64 @@ +name: unified-search-app +pool: + vmImage: ubuntu-latest + +trigger: + batch: true + branches: + include: + - main + path: + include: + - unified-search-app + + +stages: + - stage: Compliance + dependsOn: [] + jobs: + - job: compliance + displayName: Compliance + pool: + vmImage: windows-latest + steps: + - task: CredScan@3 + inputs: + outputFormat: sarif + debugMode: false + + - task: ComponentGovernanceComponentDetection@0 + inputs: + scanType: "Register" + verbosity: "Verbose" + alertWarningLevel: "High" + + - task: PublishSecurityAnalysisLogs@3 + inputs: + ArtifactName: "CodeAnalysisLogs" + ArtifactType: "Container" + + - stage: Build_deploy + dependsOn: [] + jobs: + - job: build + displayName: Build and deploy + pool: + vmImage: ubuntu-latest + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: "3.11" + displayName: "Use Python 3.11" + + - task: Docker@2 + inputs: + containerRegistry: '$(containerRegistry)' + repository: 'main' + command: 'buildAndPush' + Dockerfile: 'Dockerfile' + tags: 'latest' + - task: AzureAppServiceManage@0 + inputs: + azureSubscription: '$(subscription)' + Action: 'Restart Azure App Service' + WebAppName: '$(webApp)' \ No newline at end of file From 14d23057d62fa6cae0bb359886e2794771760ad6 Mon Sep 17 00:00:00 2001 From: Dayenne Souza Date: Mon, 7 Apr 2025 16:44:34 -0300 Subject: [PATCH 3/4] remove unused tasks --- unified-search-app/.vsts-ci.yml | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/unified-search-app/.vsts-ci.yml b/unified-search-app/.vsts-ci.yml index 3563d28a39..d715f9111c 100644 --- a/unified-search-app/.vsts-ci.yml +++ b/unified-search-app/.vsts-ci.yml @@ -13,30 +13,6 @@ trigger: stages: - - stage: Compliance - dependsOn: [] - jobs: - - job: compliance - displayName: Compliance - pool: - vmImage: windows-latest - steps: - - task: CredScan@3 - inputs: - outputFormat: sarif - debugMode: false - - - task: ComponentGovernanceComponentDetection@0 - inputs: - scanType: "Register" - verbosity: "Verbose" - alertWarningLevel: "High" - - - task: PublishSecurityAnalysisLogs@3 - inputs: - ArtifactName: "CodeAnalysisLogs" - ArtifactType: "Container" - - stage: Build_deploy dependsOn: [] jobs: From 0dbabeaeff21cd193237be04439d4fd451d522b1 Mon Sep 17 00:00:00 2001 From: Dayenne Souza Date: Mon, 7 Apr 2025 16:48:40 -0300 Subject: [PATCH 4/4] remove unused file --- unified-search-app/vsts.yml | 64 ------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 unified-search-app/vsts.yml diff --git a/unified-search-app/vsts.yml b/unified-search-app/vsts.yml deleted file mode 100644 index 3563d28a39..0000000000 --- a/unified-search-app/vsts.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: unified-search-app -pool: - vmImage: ubuntu-latest - -trigger: - batch: true - branches: - include: - - main - path: - include: - - unified-search-app - - -stages: - - stage: Compliance - dependsOn: [] - jobs: - - job: compliance - displayName: Compliance - pool: - vmImage: windows-latest - steps: - - task: CredScan@3 - inputs: - outputFormat: sarif - debugMode: false - - - task: ComponentGovernanceComponentDetection@0 - inputs: - scanType: "Register" - verbosity: "Verbose" - alertWarningLevel: "High" - - - task: PublishSecurityAnalysisLogs@3 - inputs: - ArtifactName: "CodeAnalysisLogs" - ArtifactType: "Container" - - - stage: Build_deploy - dependsOn: [] - jobs: - - job: build - displayName: Build and deploy - pool: - vmImage: ubuntu-latest - steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: "3.11" - displayName: "Use Python 3.11" - - - task: Docker@2 - inputs: - containerRegistry: '$(containerRegistry)' - repository: 'main' - command: 'buildAndPush' - Dockerfile: 'Dockerfile' - tags: 'latest' - - task: AzureAppServiceManage@0 - inputs: - azureSubscription: '$(subscription)' - Action: 'Restart Azure App Service' - WebAppName: '$(webApp)' \ No newline at end of file