Skip to content

Commit

Permalink
Merge pull request #56 from KTH/stratus-templates
Browse files Browse the repository at this point in the history
pipelines: migrate to stratus-templates
  • Loading branch information
Saulopv authored Feb 12, 2025
2 parents 1b1631e + 6cb4f03 commit 412a791
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 39 deletions.
28 changes: 16 additions & 12 deletions .azure/azure-pipelines.push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
58 changes: 31 additions & 27 deletions .azure/azure-pipelines.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,36 +27,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 }}

0 comments on commit 412a791

Please sign in to comment.