This commit is contained in:
parent
41a2f09959
commit
b8253fa0a8
1 changed files with 28 additions and 0 deletions
28
.forgejo/workflows/build-apcupsd-exporter.yaml
Normal file
28
.forgejo/workflows/build-apcupsd-exporter.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
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 .
|
||||
- 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: apcupsd_exporter/apcupsd_exporter
|
||||
package: infra-apcupsd_exporter
|
||||
|
Loading…
Reference in a new issue