Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create common yaml template to bypass local DNS #555

Merged
merged 2 commits into from
Apr 30, 2020
Merged

Create common yaml template to bypass local DNS #555

merged 2 commits into from
Apr 30, 2020

Conversation

praveenkuttappan
Copy link
Member

@praveenkuttappan praveenkuttappan commented Apr 30, 2020

Common YAML template to bypass local DNS.

Workaround for actions/runner-images#798

Copy link
Member

@JimSuplizio JimSuplizio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the common template, that's goodness. The variable you're inspecting here isn't the same one that's being looked at in eng/pipelines/templates/jobs/archetype-sdk-tests.yml so I'm curious which one it should be (or 'both' could be an answer here).

# 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['VmImage'], 'ubuntu-18.04'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@praveenkuttappan, should the variable be VmImage or OSVmImage? The variable being inspected in eng/pipelines/templates/jobs/archetype-sdk-tests.yml is OSVmImage.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the name.

@mitchdenny mitchdenny merged commit 788e827 into Azure:master Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants