diff --git a/.azure/azure-pipelines.push.yml b/.azure/azure-pipelines.push.yml index d3d2a3d..fc4fbbc 100644 --- a/.azure/azure-pipelines.push.yml +++ b/.azure/azure-pipelines.push.yml @@ -7,22 +7,26 @@ pr: resources: repositories: - - repository: cet-iac + - repository: stratus-templates type: git - name: Cloud Excellence Team/cet-iac + name: Cloud Excellence Team/stratus-templates ref: main pool: vmImage: 'ubuntu-latest' -stages: - - stage: build_test - displayName: Build and test +extends: + template: templates/security/security-scans.yml@stratus-templates + parameters: + break: false + stages: + - stage: build_test + displayName: Build and test - jobs: - - job: unit_test - displayName: Unit test - steps: - - template: templates/test/npm-test.yml@cet-iac - parameters: - nodeVersion: 18 + jobs: + - job: unit_test + displayName: Unit test + steps: + - template: /templates/test/npm.yml@stratus-templates + parameters: + nodeVersion: 18 diff --git a/.azure/azure-pipelines.release.yml b/.azure/azure-pipelines.release.yml index 2aabe24..55c08d1 100644 --- a/.azure/azure-pipelines.release.yml +++ b/.azure/azure-pipelines.release.yml @@ -25,36 +25,40 @@ variables: resources: repositories: - - repository: cet-iac + - repository: stratus-templates type: git - name: Cloud Excellence Team/cet-iac + name: Cloud Excellence Team/stratus-templates ref: main pool: vmImage: 'ubuntu-latest' -stages: - - stage: build_test - displayName: Build and test - - jobs: - - job: unit_test - displayName: Unit test - steps: - - template: templates/test/npm-test.yml@cet-iac - parameters: - nodeVersion: 18 - - - stage: release - displayName: Release - - jobs: - - job: npm_publish - displayName: Publish NPM package - steps: - - template: templates/npm/publish.yml@cet-iac - parameters: - nodeVersion: 18 - version: ${{ parameters.version }} - dryRun: ${{ parameters.dryRun }} - pushTags: ${{ parameters.pushTags }} +extends: + template: templates/security/security-scans.yml@stratus-templates + parameters: + break: false + stages: + - stage: build_test + displayName: Build and test + + jobs: + - job: unit_test + displayName: Unit test + steps: + - template: /templates/test/npm.yml@stratus-templates + parameters: + nodeVersion: 18 + + - stage: release + displayName: Release + + jobs: + - job: npm_publish + displayName: Publish NPM package + steps: + - template: /templates/npm/publish.yml@stratus-templates + parameters: + nodeVersion: 18 + version: ${{ parameters.version }} + dryRun: ${{ parameters.dryRun }} + pushTags: ${{ parameters.pushTags }}