Skip to content

Commit

Permalink
fix: current envvar usage (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnwe committed Mar 28, 2024
1 parent 6accc6e commit 687559b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,26 @@ jobs:
with:
go-version: ${{ env.GOLANG_VERSION }}
- name: Build Go Binary
run: go build -o .build/${GOOS}-${GOARCH}/node_exporter
run: "go build -o .build/${{ env.GOOS }}-${{ env.GOARCH }}/node_exporter"
- name: Generate Go Binary hashes
shell: bash
id: binhash
run: |
# single-line base64 encoded checksum(s)
echo "hashes=$(cd .build/${GOOS}-${GOARCH} >/dev/null 2>&1 && sha256sum node_exporter | tee node_exporter.sha256sum | base64 -w0)" >>"$GITHUB_OUTPUT"
echo "hashes=$(cd .build/${{ env.GOOS }}-${{ env.GOARCH }} >/dev/null 2>&1 && sha256sum node_exporter | tee node_exporter.sha256sum | base64 -w0)" >>"$GITHUB_OUTPUT"
- name: Upload Go Binary
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: node_exporter
path: .build/${GOOS}-${GOARCH}/node_exporter
path: ".build/${{ env.GOOS }}-${{ env.GOARCH }}/node_exporter"
if-no-files-found: error
retention-days: 14 # 90 is the default
- name: Upload Go Binary Checksum
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: node_exporter.sha256sum
path: .build/${GOOS}-${GOARCH}/node_exporter.sha256sum
path: ".build/${{ env.GOOS }}-${{ env.GOARCH }}/node_exporter.sha256sum"
if-no-files-found: error
retention-days: 14 # 90 is the default
- name: Setup Docker
uses: docker/setup-buildx-action@2b51285047da1547ffb1b2203d8be4c0af6b1f20 # v3.2.0
Expand Down

0 comments on commit 687559b

Please sign in to comment.