mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 05:56:37 +00:00
Merge pull request #765 from breed808/checksums
CI: Output artifacts in single, flat directory.
This commit is contained in:
@@ -45,7 +45,7 @@ build_script:
|
|||||||
make crossbuild
|
make crossbuild
|
||||||
# GH requires all files to have different names, so add version/arch to differentiate
|
# GH requires all files to have different names, so add version/arch to differentiate
|
||||||
foreach($Arch in "amd64","386") {
|
foreach($Arch in "amd64","386") {
|
||||||
Rename-Item output\$Arch\windows_exporter.exe -NewName windows_exporter-$Version-$Arch.exe
|
Move-Item output\$Arch\windows_exporter.exe output\windows_exporter-$Version-$Arch.exe
|
||||||
}
|
}
|
||||||
|
|
||||||
after_build:
|
after_build:
|
||||||
@@ -60,14 +60,14 @@ after_build:
|
|||||||
$MSIVersion = $env:APPVEYOR_REPO_TAG_NAME -replace '^v?([0-9\.]+).*$','$1'
|
$MSIVersion = $env:APPVEYOR_REPO_TAG_NAME -replace '^v?([0-9\.]+).*$','$1'
|
||||||
foreach($Arch in "amd64","386") {
|
foreach($Arch in "amd64","386") {
|
||||||
Write-Verbose "Building windows_exporter $MSIVersion msi for $Arch"
|
Write-Verbose "Building windows_exporter $MSIVersion msi for $Arch"
|
||||||
.\installer\build.ps1 -PathToExecutable .\output\$Arch\windows_exporter-$BuildVersion-$Arch.exe -Version $MSIVersion -Arch "$Arch"
|
.\installer\build.ps1 -PathToExecutable .\output\windows_exporter-$BuildVersion-$Arch.exe -Version $MSIVersion -Arch "$Arch"
|
||||||
Move-Item installer\Output\windows_exporter-$MSIVersion-$Arch.msi output\$Arch\
|
Move-Item installer\Output\windows_exporter-$MSIVersion-$Arch.msi output\
|
||||||
}
|
}
|
||||||
- promu checksum output\
|
- promu checksum output\
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- name: Artifacts
|
- name: Artifacts
|
||||||
path: output\**\*
|
path: output\*
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
- provider: GitHub
|
- provider: GitHub
|
||||||
|
|||||||
Reference in New Issue
Block a user