From 151e81333066af0f1fe924636bd67929daf2e68e Mon Sep 17 00:00:00 2001 From: "Ananth Kannan (Coach AK)" <15877864+akannan1087@users.noreply.github.com> Date: Fri, 10 Jan 2025 13:17:10 -0600 Subject: [PATCH] Delete azure-pipelines.yml --- azure-pipelines.yml | 74 --------------------------------------------- 1 file changed, 74 deletions(-) delete mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 39a9099..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,74 +0,0 @@ -# Docker -# Build and push an image to Azure Container Registry -# https://docs.microsoft.com/azure/devops/pipelines/languages/docker - -trigger: -- master - -resources: -- repo: self - -variables: - # Container registry service connection established during pipeline creation - dockerRegistryServiceConnection: '0bec8793-84e5-4b3a-b71d-7e74022a7a47' - imageRepository: 'dockerspringboot' - containerRegistry: 'myacrrepo131.azurecr.io' - dockerfilePath: '$(Build.SourcesDirectory)/Dockerfile' - tag: '$(Build.BuildId)' - - # Agent VM image name - vmImageName: 'ubuntu-latest' - -stages: -- stage: Build - displayName: Build and push stage - jobs: - - job: Build - displayName: Build - pool: - vmImage: $(vmImageName) - steps: - - task: Maven@4 - inputs: - mavenPomFile: 'pom.xml' - publishJUnitResults: true - testResultsFiles: '**/surefire-reports/TEST-*.xml' - javaHomeOption: 'JDKVersion' - mavenVersionOption: 'Default' - mavenAuthenticateFeed: false - effectivePomSkip: false - sonarQubeRunAnalysis: false - - task: Docker@2 - displayName: Build an image - inputs: - command: build - repository: $(imageRepository) - dockerfile: $(dockerfilePath) - containerRegistry: $(dockerRegistryServiceConnection) - tags: | - $(tag) - - # Install Trivy Scanner on Agent - - task: Bash@3 - displayName: "Install Trivy" - inputs: - targetType: inline - script: | - curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh - # Run Trivy Scan - - task: Bash@3 - displayName: "Run Trivy Scan" - inputs: - targetType: inline - script: | - ./bin/trivy image --severity HIGH,CRITICAL,MEDIUM --ignore-unfixed $(containerRegistry)/$(imageRepository):$(tag) - - - task: Docker@2 - displayName: push an image to container registry - inputs: - command: Push - repository: $(imageRepository) - dockerfile: $(dockerfilePath) - containerRegistry: $(dockerRegistryServiceConnection) - tags: | - $(tag) \ No newline at end of file