infra/.forgejo/workflows/build-smartctl-exporter.yaml
Finn a9878fcf10
Some checks failed
/ build (push) Failing after 2s
Attempt to use newer golang for smartctl_exporter build
2024-08-05 00:13:52 -07:00

33 lines
984 B
YAML

on:
push:
branches:
- main
paths:
- .forgejo/workflows/build-smartctl-exporter.yaml
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go
with:
go-version: '1.22'
- 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
uses: https://codeberg.org/EntanglementGarden/actions/generic-upload@v0.1
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