Skip to content

Commit

Permalink
Add update-readmes pipeline (dotnet#1643)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSimons committed Jan 31, 2020
1 parent 9c65b30 commit 5800030
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 10 deletions.
14 changes: 4 additions & 10 deletions eng/common/templates/jobs/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,10 @@ jobs:
$(imageBuilder.pathArgs)
$(imageBuilder.commonCmdArgs)
displayName: Publish Manifest
- script: >
$(runImageBuilderCmd) publishMcrDocs
$(dotnetBot-userName)
$(dotnetBot-email)
$(dotnet-bot-user-repo-adminrepohook-pat)
$(publicGitRepoUri)
$(dryRunArg)
$(imageBuilder.commonCmdArgs)
displayName: Publish Readme
condition: and(succeeded(), eq(variables['publishReadme'], 'true'))
- template: ../steps/publish-readmes.yml
parameters:
dryRunArg: $(dryRunArg)
condition: and(succeeded(), eq(variables['publishReadme'], 'true'))
- script: >
$(runImageBuilderCmd) publishImageInfo
$(dotnetBot-userName)
Expand Down
17 changes: 17 additions & 0 deletions eng/common/templates/steps/publish-readmes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
parameters:
dryRunArg: ""
condition: true

steps:
- script: >
$(runImageBuilderCmd) publishMcrDocs
--manifest $(manifest)
--registry-override $(acr.server)
$(dotnetBot-userName)
$(dotnetBot-email)
$(dotnet-bot-user-repo-adminrepohook-pat)
$(publicGitRepoUri)
${{ parameters.dryRunArg }}
$(imageBuilder.queueArgs)
displayName: Publish Readmes
condition: ${{ parameters.condition }}
14 changes: 14 additions & 0 deletions eng/pipelines/update-readmes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trigger: none
pr: none
variables:
- group: DotNet-Maestro
- template: variables/common.yml
- name: manifest
value: manifest.json
jobs:
- job: UpdateReadmes
pool: Hosted Ubuntu 1604
steps:
- template: ../common/templates/steps/init-docker-linux.yml
- template: ../common/templates/steps/publish-readmes.yml
- template: ../common/templates/steps/cleanup-docker-linux.yml

0 comments on commit 5800030

Please sign in to comment.