Skip to content

Commit

Permalink
[#176591026] Added new stage for deploying client SDK to NPM (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
gquadrati authored Feb 8, 2021
1 parent 733b240 commit d8d5581
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .devops/deploy-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,17 @@ pool:

resources:
repositories:
- repository: pagopaCommons
- repository: pagopaCommonsLegacy
type: github
name: pagopa/azure-pipeline-templates
ref: refs/tags/v4
endpoint: 'pagopa'

- repository: pagopaCommons
type: github
name: pagopa/azure-pipeline-templates
ref: refs/tags/v10
endpoint: 'pagopa'

stages:

Expand All @@ -58,7 +64,7 @@ stages:
- job: make_release
steps:
- ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/master') }}:
- template: templates/node-github-release/template.yaml@pagopaCommons
- template: templates/node-github-release/template.yaml@pagopaCommonsLegacy
parameters:
semver: '${{ parameters.RELEASE_SEMVER }}'
gitEmail: $(GIT_EMAIL)
Expand All @@ -73,7 +79,6 @@ stages:
echo "We assume this reference to be a valid release: $(Build.SourceBranch). Therefore, there is no need to bundle a new release."
displayName: 'Skip release bundle'
# Prepare Artifact
- stage: Deploy_staging
dependsOn:
Expand Down Expand Up @@ -140,7 +145,7 @@ stages:
jobs:
- job: 'do_healthcheck'
steps:
- template: templates/rest-healthcheck/template.yaml@pagopaCommons
- template: templates/rest-healthcheck/template.yaml@pagopaCommonsLegacy
parameters:
azureSubscription: '$(PRODUCTION_AZURE_SUBSCRIPTION)'
appName: '$(PRODUCTION_APP_NAME)'
Expand All @@ -166,3 +171,17 @@ stages:
sourceSlot: staging
swapWithProduction: true
displayName: Swap with production slot


# Publish client SDK to NPM
- stage: PublishClientSDKtoNPM
dependsOn: Release
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: publish_SDK
steps:
# Template for generating and deploying client SDk to NPM
- template: templates/client-sdk-publish/template.yaml@pagopaCommons
parameters:
openapiSpecPath: 'openapi/index.yaml'

0 comments on commit d8d5581

Please sign in to comment.