Skip to content

Commit

Permalink
ci: various improvements (envoyproxy#13660)
Browse files Browse the repository at this point in the history
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
  • Loading branch information
lizan committed Oct 21, 2020
1 parent b25abcb commit 863c497
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .azure-pipelines/pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,26 +70,25 @@ stages:
inputs:
pathtoPublish: "$(Build.SourcesDirectory)/generated/docs"
artifactName: docs
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))

- task: InstallSSHKey@0
inputs:
hostName: "github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ=="
sshPublicKey: "$(DocsPublicKey)"
sshPassphrase: "$(SshDeployKeyPassphrase)"
sshKeySecureFile: "$(DocsPrivateKey)"
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['PostSubmit'], true))
condition: and(succeeded(), eq(variables['PostSubmit'], true), ne(variables['NoSync'], true))

- script: docs/publish.sh
displayName: "Publish to GitHub"
workingDirectory: $(Build.SourcesDirectory)
env:
AZP_BRANCH: $(Build.SourceBranch)
AZP_SHA1: $(Build.SourceVersion)
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['PostSubmit'], true))
condition: and(succeeded(), eq(variables['PostSubmit'], true), ne(variables['NoSync'], true))

- stage: sync
condition: and(succeeded(), eq(variables['PostSubmit'], true))
condition: and(succeeded(), eq(variables['PostSubmit'], true), ne(variables['NoSync'], true))
dependsOn: []
jobs:
- job: filter_example
Expand Down Expand Up @@ -130,6 +129,8 @@ stages:

- job: go_control_plane
dependsOn: []
pool:
vmImage: "ubuntu-18.04"
steps:
- task: InstallSSHKey@0
inputs:
Expand All @@ -152,12 +153,11 @@ stages:
- stage: linux_x64
dependsOn: ["precheck"]
# For master builds, continue even if precheck fails
condition: and(not(canceled()), or(succeeded(), ne(variables['Build.Reason'], 'PullRequest')))
# For post-submit builds, continue even if precheck fails
condition: and(not(canceled()), or(succeeded(), eq(variables['PostSubmit'], true)))
jobs:
- job: release
# For master builds, continue even if format fails
timeoutInMinutes: 360
timeoutInMinutes: 120
pool:
vmImage: "ubuntu-18.04"
steps:
Expand All @@ -167,11 +167,11 @@ stages:

- stage: linux_arm64
dependsOn: ["precheck"]
# For master builds, continue even if precheck fails
condition: and(not(canceled()), or(succeeded(), ne(variables['Build.Reason'], 'PullRequest')))
# For post-submit builds, continue even if precheck fails
condition: and(not(canceled()), or(succeeded(), eq(variables['PostSubmit'], true)))
jobs:
- job: release
timeoutInMinutes: 360
timeoutInMinutes: 120
pool: "arm-large"
steps:
- template: bazel.yml
Expand Down Expand Up @@ -203,7 +203,7 @@ stages:
CI_TARGET: "bazel.tsan"
compile_time_options:
CI_TARGET: "bazel.compile_time_options"
timeoutInMinutes: 360
timeoutInMinutes: 120
pool:
vmImage: "ubuntu-18.04"
steps:
Expand All @@ -214,7 +214,7 @@ stages:
- job: coverage
displayName: "linux_x64"
dependsOn: []
timeoutInMinutes: 360
timeoutInMinutes: 120
pool: "x64-large"
strategy:
maxParallel: 2
Expand Down Expand Up @@ -304,7 +304,7 @@ stages:
dependsOn: ["precheck"]
jobs:
- job: test
timeoutInMinutes: 360
timeoutInMinutes: 180
pool:
vmImage: "macos-latest"
steps:
Expand Down Expand Up @@ -338,7 +338,7 @@ stages:
dependsOn: ["precheck"]
jobs:
- job: release
timeoutInMinutes: 360
timeoutInMinutes: 120
pool:
vmImage: "windows-latest"
steps:
Expand Down

0 comments on commit 863c497

Please sign in to comment.