This commit is contained in:
parent
e42a09747e
commit
65e0d387ba
1 changed files with 33 additions and 0 deletions
33
.forgejo/workflows/build-smartctl-exporter.yaml
Normal file
33
.forgejo/workflows/build-smartctl-exporter.yaml
Normal 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
|
||||
|
Loading…
Reference in a new issue