infra/.forgejo/workflows/build-apcupsd-exporter.yaml
Finn 01f4e5fa94
Some checks failed
/ build (push) Failing after 36s
debug
2024-08-04 23:38:06 -07:00

32 lines
954 B
YAML

on:
push:
branches:
- main
- apcpupsd-exporter
paths:
- .forgejo/workflows/build-apcupsd-exporter.yaml
jobs:
build:
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:runner-latest
steps:
- name: Build apcupsd_exporter
run: |
set -ex
sudo apt-get update && sudo apt-get install -y golang-go
git clone https://github.com/mdlayher/apcupsd_exporter.git
cd apcupsd_exporter
go build ./cmd/apcupsd_exporter
ls -lha
pwd
- 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
version: ${{ github.SHA }}
package: infra/apcupsd_exporter