From b8253fa0a83d63d5c82ced0a2654bad12e9f75ed Mon Sep 17 00:00:00 2001 From: Finn Date: Sun, 4 Aug 2024 23:05:21 -0700 Subject: [PATCH] test apcupsd_exporter build --- .../workflows/build-apcupsd-exporter.yaml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .forgejo/workflows/build-apcupsd-exporter.yaml diff --git a/.forgejo/workflows/build-apcupsd-exporter.yaml b/.forgejo/workflows/build-apcupsd-exporter.yaml new file mode 100644 index 0000000..37db8c4 --- /dev/null +++ b/.forgejo/workflows/build-apcupsd-exporter.yaml @@ -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 +