test apcupsd_exporter build
This commit is contained in:
parent
41a2f09959
commit
a5300c16de
1 changed files with 22 additions and 0 deletions
22
.forgejo/workflows/build-apcupsd-exporter.yaml
Normal file
22
.forgejo/workflows/build-apcupsd-exporter.yaml
Normal file
|
@ -0,0 +1,22 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- apcupsd-exporter
|
||||
paths:
|
||||
- .forgejo/workflows/build-apcupsd-exporter.yaml
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:runner-latest
|
||||
steps:
|
||||
- uses: actions/setup-go
|
||||
- name: Build apcupsd_exporter
|
||||
run: |
|
||||
set -exuo pipefail
|
||||
git clone https://github.com/mdlayher/apcupsd_exporter.git
|
||||
cd apcupsd_exporter
|
||||
go build .
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue