Skip to content

Commit e8b3f1e

Browse files
committed
Disable signing in main, simplify condition for release
1 parent d73e8cc commit e8b3f1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eng/pipelines/templates/variables/vmr-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ variables:
8787
- name: signEnabled
8888
value: true
8989
# Pass sign on the internal project if the, branch is a main or release branch
90-
- ${{ elseif and(eq(variables['System.TeamProject'], 'internal'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), and(startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), contains(variables['Build.SourceBranch'], '-preview')))) }}:
90+
- ${{ elseif and(eq(variables['System.TeamProject'], 'internal'), or(startsWith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))) }}:
9191
- name: signEnabled
9292
value: true
9393
# Do not sign otherwise.
@@ -104,7 +104,7 @@ variables:
104104
value: false
105105
# Otherwise, sign if the branch is a release branch.
106106
# We can't sign the DAC in main because the certificates are locked down.
107-
- ${{ elseif and(eq(variables['System.TeamProject'], 'internal'), or(startsWith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/reltest/'), and(startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), contains(variables['Build.SourceBranch'], '-preview')))) }}:
107+
- ${{ elseif and(eq(variables['System.TeamProject'], 'internal'), or(startsWith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))) }}:
108108
- name: signDacEnabled
109109
value: true
110110
- ${{ else }}:

0 commit comments

Comments
 (0)