Exclude bypass-local-dns step when a container variable is specified (#1011)

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
This commit is contained in:
Azure SDK Bot 2020-11-30 14:39:50 -08:00 committed by GitHub
parent 85fb3e3530
commit 84b76c30d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -3,4 +3,9 @@ steps:
# https://github.com/actions/virtual-environments/issues/798
- script: sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
displayName: Bypass local DNS server to workaround issue resolving cognitiveservices names
condition: and(succeededOrFailed(), eq(variables['OSVmImage'], 'ubuntu-18.04'))
condition: |
and(
succeededOrFailed(),
eq(variables['OSVmImage'], 'ubuntu-18.04'),
eq(variables['Container'], '')
)

View File

@ -1,4 +1,4 @@
parameters:
parameters:
OSVmImage: $(OSVmImage)
steps: