mirror of
https://github.com/prometheus-community/windows_exporter
synced 2025-02-09 16:19:51 +00:00
Merge pull request #948 from breed808/ci_tag_name
Fix image build issues
This commit is contained in:
commit
4d2a247e50
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -144,6 +144,8 @@ jobs:
|
||||
goversioninfo.exe -ver-major $VersionParts[0] -ver-minor $VersionParts[1] -ver-patch $VersionParts[2] -product-version $Version -platform-specific
|
||||
|
||||
make crossbuild
|
||||
# '+' symbols are invalid characters in image tags
|
||||
(Get-Content -Path VERSION) -replace '\+', '_' | Set-Content -Path VERSION
|
||||
make build-all
|
||||
# GH requires all files to have different names, so add version/arch to differentiate
|
||||
foreach($Arch in "amd64","386") {
|
||||
@ -185,7 +187,8 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
VERSION=latest make push-all
|
||||
$Env:VERSION = 'latest'
|
||||
make push-all
|
||||
|
||||
- name: Release
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
|
Loading…
Reference in New Issue
Block a user