infra/.forgejo/workflows/build-smartctl-exporter.yaml
Finn 0daa626819
All checks were successful
/ build (push) Successful in 1m5s
herp derp
2024-08-05 00:14:39 -07:00

33 lines
987 B
YAML

on:
push:
branches:
- main
paths:
- .forgejo/workflows/build-smartctl-exporter.yaml
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
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