2024-08-05 07:10:34 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
- .forgejo/workflows/build-smartctl-exporter.yaml
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-08-05 07:13:52 +00:00
|
|
|
runs-on: ubuntu-latest
|
2024-08-05 07:10:34 +00:00
|
|
|
steps:
|
2024-08-05 07:14:39 +00:00
|
|
|
- uses: actions/setup-go@v5
|
2024-08-05 07:13:52 +00:00
|
|
|
with:
|
|
|
|
go-version: '1.22'
|
2024-08-05 07:10:34 +00:00
|
|
|
- name: Build smartctl_exporter
|
|
|
|
run: |
|
|
|
|
set -ex
|
|
|
|
git clone https://github.com/prometheus-community/smartctl_exporter
|
|
|
|
cd smartctl_exporter
|
|
|
|
git checkout v0.12.0
|
|
|
|
go build .
|
|
|
|
sha256sum smartctl_exporter | tee SHA256SUMS.txt
|
|
|
|
- name: upload
|
2024-09-08 05:03:08 +00:00
|
|
|
uses: https://codeberg.org/EntanglementGarden/actions/generic-upload@v0.2
|
2024-08-05 07:10:34 +00:00
|
|
|
with:
|
|
|
|
upload-username: ${{ secrets.DEPLOY_USER }} # must be a user that can upload to the registry
|
|
|
|
upload-token: ${{ secrets.DEPLOY_TOKEN }}
|
|
|
|
files: |
|
|
|
|
smartctl_exporter/smartctl_exporter
|
|
|
|
smartctl_exporter/SHA256SUMS.txt
|
|
|
|
version: ${{ github.SHA }}
|
|
|
|
package: infra-smartctl-exporter
|
|
|
|
|