From 3519f486b99732dd7213ed23499a503938b6bcaf Mon Sep 17 00:00:00 2001 From: Finn Date: Sun, 4 Aug 2024 23:32:09 -0700 Subject: [PATCH] fix apcupsd_exporter build --- .forgejo/workflows/build-apcupsd-exporter.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build-apcupsd-exporter.yaml b/.forgejo/workflows/build-apcupsd-exporter.yaml index 2484256..bbbd420 100644 --- a/.forgejo/workflows/build-apcupsd-exporter.yaml +++ b/.forgejo/workflows/build-apcupsd-exporter.yaml @@ -17,12 +17,15 @@ jobs: 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 . + 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