-
Notifications
You must be signed in to change notification settings - Fork 140
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
Try fix smoke tests (#5889 -> v2) #5891
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
parameters: | ||
- name: isLinux | ||
type: boolean | ||
default: false | ||
|
||
- name: 'dockerComposePath' | ||
type: string | ||
default: 'C:/docker-compose/docker-compose.exe' | ||
|
||
steps: | ||
- ${{ if eq(parameters.isLinux, true) }}: | ||
- bash: | | ||
sudo mkdir -p "$(dirname "${{ parameters.dockerComposePath }}")" | ||
sudo curl -SL https://github.com/docker/compose/releases/download/1.29.2/docker-compose-linux-x86_64 -o ${{ parameters.dockerComposePath }} | ||
sudo chmod 755 ${{ parameters.dockerComposePath }} | ||
displayName: Download docker-compose | ||
- ${{ else }}: | ||
- powershell: | | ||
$dir= (Split-Path -parent "${{ parameters.dockerComposePath }}") | ||
mkdir -f -p $dir | ||
# GitHub now requires TLS1.2. In PowerShell, run the following | ||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | ||
Invoke-WebRequest "https://github.com/docker/compose/releases/download/1.29.1/docker-compose-windows-x86_64.exe" -OutFile "${{ parameters.dockerComposePath }}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. super nit pick, but the file name is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh wait, it's just a stand-alone |
||
displayName: Download docker-compose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noticing on this one that the release versions between linux (
v1.29.2
) differ from windows (v1.29.1
)Unsure if it matters, just pointing out.