AMB-468 Add DELETE /service endpoint by artronics · Pull Request #2 · NHSDigital/monitoring-service-discovery
@@ -1,92 +1,30 @@
name: "$(SourceBranchName)+$(BuildID)"
trigger: branches: include: - tags/refs/v* tags: include: - v* branches: include: - tags/refs/v* tags: include: - v*
pr: branches: include: ['*'] branches: include: ['*']
resources: repositories: - repository: templates type: github name: NHSDigital/api-management-utils ref: 'refs/heads/APM-00-AMB-229-add-monitoring-endpoints-to-pipeline-3' endpoint: NHSDigital
jobs: - job: build displayName: Build & Test timeoutInMinutes: 10 pool: vmImage: 'ubuntu-latest' variables: API_TEST_ENV_FILE_PATH: "tests/e2e/environments/local.postman_environment.json" PIP_CACHE_DIR: ".poetry" SERVICE_NAME: "monitoring-service-discovery" steps: - checkout: self
- template: az/templates/setup-build-name.yml@templates
- task: UsePythonVersion@0 displayName: "Use Python 3.8" inputs: versionSpec: "3.8"
- bash: "sudo apt update && sudo apt-get install --yes default-jre default-jdk" displayName: Install apt dependencies
- bash: "wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -" displayName: Add apt-key
- bash: "curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -" displayName: Setup node
- bash: sudo apt-get install -y nodejs displayName: Install node
- bash: "python -m pip install --upgrade pip setuptools wheel && pip install poetry" displayName: Install python dependencies
- task: Cache@2 displayName: "Cache Python Dependencies" inputs: key: '"$(Agent.OS)" | "python" | poetry.lock' path: ".poetry" restoreKeys: | "$(Agent.OS)" | "python" | poetry.lock "$(Agent.OS)" | "python"
- task: Cache@2 displayName: "Cache Package NPM Dependencies" inputs: key: '"$(Agent.OS)" | "node" | package-lock.json' path: "node_modules" restoreKeys: | "$(Agent.OS)" | "node" | package-lock.json "$(Agent.OS)" | "node"
- bash: "make install" displayName: Install repo
- bash: "make check-licenses" displayName: Check licenses
- bash: "make lint" displayName: Lint
- bash: "make publish" displayName: Compile Spec
- bash: "make release" displayName: Build Release Package
- publish: dist/ artifact: '$(Build.BuildNumber)' repositories: - repository: common type: github name: NHSDigital/api-management-utils ref: refs/heads/edge endpoint: NHSDigital
variables: - template: project.yml
extends: template: azure/common/apigee-build.yml@common parameters: service_name: ${{ variables.service_name }} short_service_name: ${{ variables.short_service_name }}
trigger: branches: include: - tags/refs/v* tags: include: - v* branches: include: - tags/refs/v* tags: include: - v*
pr: branches: include: ['*'] branches: include: ['*']
resources: repositories: - repository: templates type: github name: NHSDigital/api-management-utils ref: 'refs/heads/APM-00-AMB-229-add-monitoring-endpoints-to-pipeline-3' endpoint: NHSDigital
jobs: - job: build displayName: Build & Test timeoutInMinutes: 10 pool: vmImage: 'ubuntu-latest' variables: API_TEST_ENV_FILE_PATH: "tests/e2e/environments/local.postman_environment.json" PIP_CACHE_DIR: ".poetry" SERVICE_NAME: "monitoring-service-discovery" steps: - checkout: self
- template: az/templates/setup-build-name.yml@templates
- task: UsePythonVersion@0 displayName: "Use Python 3.8" inputs: versionSpec: "3.8"
- bash: "sudo apt update && sudo apt-get install --yes default-jre default-jdk" displayName: Install apt dependencies
- bash: "wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -" displayName: Add apt-key
- bash: "curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -" displayName: Setup node
- bash: sudo apt-get install -y nodejs displayName: Install node
- bash: "python -m pip install --upgrade pip setuptools wheel && pip install poetry" displayName: Install python dependencies
- task: Cache@2 displayName: "Cache Python Dependencies" inputs: key: '"$(Agent.OS)" | "python" | poetry.lock' path: ".poetry" restoreKeys: | "$(Agent.OS)" | "python" | poetry.lock "$(Agent.OS)" | "python"
- task: Cache@2 displayName: "Cache Package NPM Dependencies" inputs: key: '"$(Agent.OS)" | "node" | package-lock.json' path: "node_modules" restoreKeys: | "$(Agent.OS)" | "node" | package-lock.json "$(Agent.OS)" | "node"
- bash: "make install" displayName: Install repo
- bash: "make check-licenses" displayName: Check licenses
- bash: "make lint" displayName: Lint
- bash: "make publish" displayName: Compile Spec
- bash: "make release" displayName: Build Release Package
- publish: dist/ artifact: '$(Build.BuildNumber)' repositories: - repository: common type: github name: NHSDigital/api-management-utils ref: refs/heads/edge endpoint: NHSDigital
variables: - template: project.yml
extends: template: azure/common/apigee-build.yml@common parameters: service_name: ${{ variables.service_name }} short_service_name: ${{ variables.short_service_name }}