From 6e739e6f2a3c3d69bda02be329c19b4f9f56abd5 Mon Sep 17 00:00:00 2001 From: Tim Hess Date: Wed, 7 Feb 2024 14:32:26 -0600 Subject: [PATCH] cleanup --- .gitignore | 3 + azure-pipelines.yaml | 129 ------------------------------------------- test/.gitignore | 2 - tools/.gitignore | 2 - 4 files changed, 3 insertions(+), 133 deletions(-) delete mode 100644 azure-pipelines.yaml delete mode 100644 test/.gitignore delete mode 100644 tools/.gitignore diff --git a/.gitignore b/.gitignore index ccd1e82..08dc468 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,6 @@ obj/ # JetBrains Rider state /.idea/ + +# code coverage +coverage*.* \ No newline at end of file diff --git a/azure-pipelines.yaml b/azure-pipelines.yaml deleted file mode 100644 index e17c5f9..0000000 --- a/azure-pipelines.yaml +++ /dev/null @@ -1,129 +0,0 @@ -trigger: -- main - -variables: -- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE - value: true -- name: DOTNET_CLI_TELEMETRY_OPTOUT - value: 1 -- group: PackageSigningSecrets - -stages: -- stage: assemble - displayName: Assemble - jobs: - - job: build - displayName: Build - pool: - vmImage: ubuntu-latest - steps: - - task: UseDotNet@2 - displayName: 'Install .NET Core SDK 6.0' - inputs: - packageType: sdk - version: 6.0.x - - task: UseDotNet@2 - displayName: 'Install .NET Core SDK 3.1' - inputs: - packageType: sdk - version: 3.1.x - # - task: SonarSource.sonarcloud.14d9cde6-c1da-4d55-aa01-2965cd301255.SonarCloudPrepare@1 - # displayName: Start SonarQube Analysis - # inputs: - # SonarCloud: SonarCloud - # organization: steeltoeoss - # projectKey: InitializrService - # extraProperties: | - # sonar.cs.opencover.reportsPaths=$(Build.SourcesDirectory)/**/*.opencover.xml - - task: DotNetCoreCLI@2 - displayName: dotnet restore - inputs: - command: restore - - task: DotNetCoreCLI@2 - displayName: dotnet build - inputs: - command: build - arguments: > - --no-restore - - task: DotNetCoreCLI@2 - displayName: dotnet test - inputs: - command: test - arguments: > - --no-build - /p:CollectCoverage=true - /p:CoverletOutputFormat=opencover - - task: DotNetCoreCLI@2 - displayName: dotnet publish - inputs: - command: publish - arguments: --no-build - zipAfterPublish: false - - task: DotNetCoreCLI@2 - displayName: dotnet pack - inputs: - command: pack - packagesToPack: src/InitializrService.Config - arguments: --no-build - - task: Powershell@2 - displayName: Sign NuGets - inputs: - filePath: sign/SignPackages.ps1 - env: - ArtifactStagingDirectory: $(Build.ArtifactStagingDirectory) - SignClientUser: $(SignClientUser) - SignClientSecret: $(SignClientSecret) - # - task: SonarSource.sonarcloud.ce096e50-6155-4de8-8800-4221aaeed4a1.SonarCloudAnalyze@1 - # displayName: Stop SonarQube Analysis - # - task: SonarSource.sonarcloud.38b27399-a642-40af-bb7d-9971f69712e8.SonarCloudPublish@1 - # displayName: Publish SonarQube Analysis - - task: PublishBuildArtifacts@1 - displayName: Publish Build Artifacts - inputs: - artifactName: nugets -- stage: Deploy - displayName: Deploy - dependsOn: assemble - condition: - not(eq(variables['build.reason'], 'PullRequest')) - jobs: - - job: push - displayName: Push - pool: - vmImage: ubuntu-latest - steps: - - task: Docker@2 - displayName: Build and Push Docker Image - inputs: - command: buildAndPush - containerRegistry: SteeltoeContainerRegistry - repository: initializr-service - tags: | - $(Build.BuildId) - latest - - task: ShellScript@2 - displayName: Generate Staging Manifest - inputs: - scriptPath: ./yttw.sh - args: > - -f kubernetes - -v image_tag=$(Build.BuildId) - -v dotnet_environment=Staging - -v hostname=start-staging.steeltoe.io - --output-files manifests/staging - - task: ShellScript@2 - displayName: Generate Production Manifest - inputs: - scriptPath: ./yttw.sh - args: > - -f kubernetes - -v image_tag=$(Build.BuildId) - -v replica_count=2 - -v dotnet_environment=Production - -v hostname=start.steeltoe.io - --output-files manifests/production - - task: PublishPipelineArtifact@1 - displayName: Publish Manifests - inputs: - targetPath: manifests - artifactName: manifests diff --git a/test/.gitignore b/test/.gitignore deleted file mode 100644 index 54ad947..0000000 --- a/test/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# code coverage -coverage*.* diff --git a/tools/.gitignore b/tools/.gitignore deleted file mode 100644 index 512a530..0000000 --- a/tools/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/.store/ -/SignClient