infra/.forgejo/workflows/build-smartctl-exporter.yaml
Renovate Bot 843793e150
All checks were successful
/ build (push) Successful in 52s
chore(deps): update entanglementgarden/actions action to v0.2
2024-09-08 05:03:08 +00: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.2
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