mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-26 14:46:35 +00:00
Compare commits
1 Commits
v0.26.0-rc
...
v0.26.0-rc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
13ebec0195 |
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@@ -18,12 +18,12 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
# fetch-depth required for gitversion in `Build` step
|
# fetch-depth required for gitversion in `Build` step
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version-file: 'go.mod'
|
go-version-file: 'go.mod'
|
||||||
|
|
||||||
@@ -50,6 +50,7 @@ jobs:
|
|||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
|
|
||||||
dotnet-gitversion /output json /showvariable FullSemVer | Set-Content VERSION -PassThru
|
dotnet-gitversion /output json /showvariable FullSemVer | Set-Content VERSION -PassThru
|
||||||
|
$Version = Get-Content VERSION
|
||||||
|
|
||||||
make crossbuild
|
make crossbuild
|
||||||
# '+' symbols are invalid characters in image tags
|
# '+' symbols are invalid characters in image tags
|
||||||
@@ -61,7 +62,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: windows_exporter_binaries
|
name: windows_exporter_binaries
|
||||||
path: output\windows_exporter-*.exe
|
path: output\windows_exporter-*.exe
|
||||||
@@ -84,7 +85,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Login to GitHub container registry
|
- name: Login to GitHub container registry
|
||||||
if: ${{ github.event_name != 'pull_request' }}
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
|
|||||||
Reference in New Issue
Block a user