Add smartctl_exporter build
Some checks failed
/ build (push) Failing after 30s

This commit is contained in:
Finn 2024-08-05 00:10:34 -07:00
parent e42a09747e
commit 65e0d387ba

View file

@ -0,0 +1,33 @@
on:
push:
branches:
- main
paths:
- .forgejo/workflows/build-smartctl-exporter.yaml
jobs:
build:
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:runner-latest
steps:
- name: Build smartctl_exporter
run: |
set -ex
sudo apt-get update && sudo apt-get install -y golang-go
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