Skip to content

Commit

Permalink
Add docker on release pipeline and unified pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
sima-zhu committed Dec 10, 2021
1 parent d5276ea commit 68672e6
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions eng/pipelines/templates/stages/archetype-js-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ stages:
name: azsdk-pool-mms-ubuntu-2004-general
vmImage: MMSUbuntu20.04

variables:
DocValidationImageId: azuresdkimages.azurecr.io/jsrefautocr:latest
strategy:
runOnce:
deploy:
Expand All @@ -128,6 +130,12 @@ stages:
- sdk/**/*.md
- .github/CODEOWNERS
- download: current
# Pull and build the docker image.
- template: /eng/common/pipelines/templates/steps/docker-pull-image.yml
parameters:
ContainerRegistryClientId: $(azuresdkimages-cr-clientid)
ContainerRegistryClientSecret: $(azuresdkimages-cr-clientsecret)
ImageId: "$(DocValidationImageId)"
- template: /eng/common/pipelines/templates/steps/update-docsms-metadata.yml
parameters:
PackageInfoLocations:
Expand All @@ -142,7 +150,8 @@ stages:
- metadata/
- ci-configs/packages-latest.json
- ci-configs/packages-preview.json

DocValidationImageId: "$(DocValidationImageId)"

- ${{if ne(artifact.skipPublishDocGithubIo, 'true')}}:
- deployment: PublishDocsGitHubIO
displayName: Publish Docs to GitHubIO Blob Storage
Expand Down Expand Up @@ -283,6 +292,8 @@ stages:
pool:
name: azsdk-pool-mms-ubuntu-2004-general
vmImage: MMSUbuntu20.04
variables:
DocValidationImageId: azuresdkimages.azurecr.io/jsrefautocr:latest
steps:
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
parameters:
Expand All @@ -294,7 +305,12 @@ stages:
- pwsh: |
Get-ChildItem -Recurse $(Pipeline.Workspace)/${{parameters.ArtifactName}}/
displayName: Show visible artifacts
# Pull and build the docker image.
- template: /eng/common/pipelines/templates/steps/docker-pull-image.yml
parameters:
ContainerRegistryClientId: $(azuresdkimages-cr-clientid)
ContainerRegistryClientSecret: $(azuresdkimages-cr-clientsecret)
ImageId: "$(DocValidationImageId)"
- template: /eng/common/pipelines/templates/steps/update-docsms-metadata.yml
parameters:
PackageInfoLocations:
Expand All @@ -311,3 +327,4 @@ stages:
- metadata/
- ci-configs/packages-latest.json
- ci-configs/packages-preview.json
DocValidationImageId: "$(DocValidationImageId)"

0 comments on commit 68672e6

Please sign in to comment.