Skip to content

Commit

Permalink
goreleaser adding version to binaries (#519)
Browse files Browse the repository at this point in the history
* goreleaser adding version to binaries

* Getting folder by sorting

* Pinning linter version to v1.63

* Updated linter version
  • Loading branch information
rahulreddy15 authored Feb 13, 2025
1 parent 87d9e4d commit e05cee3
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/push_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,18 @@ jobs:
- name: Create image for chart testing
if: steps.list-changed.outputs.changed == 'true'
run: |
TAG=test GOOS=linux GOARCH=amd64 make ci/build
sudo cp ./dist/nri-prometheus-nix_linux_amd64/nri-prometheus ./bin/nri-prometheus
export TAG=test
export GOOS=linux
export GOARCH=amd64
make ci/build
# Find the highest versioned amd64 build directory
# Sort numerically on the version suffix (e.g., _v1, _v2)
latest_dir=$(ls -d ./dist/nri-prometheus-nix_linux_amd64* | sort -V | tail -n1)
if [ -z "$latest_dir" ]; then
echo "Error: No matching build directory found"
exit 1
fi
sudo cp "${latest_dir}/nri-prometheus" ./bin/nri-prometheus
DOCKER_BUILDKIT=1 docker build -t e2e/nri-prometheus:test . -f Dockerfile.dev
minikube image load e2e/nri-prometheus:test
- name: Test install charts
Expand All @@ -85,10 +95,11 @@ jobs:
with:
golangci-lint-config: golangci-lint-limited
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
continue-on-error: ${{ github.event_name != 'pull_request' }}
with:
only-new-issues: true
version: v1.63
- name: Check if CHANGELOG is valid
uses: newrelic/release-toolkit/validate-markdown@v1

Expand Down

0 comments on commit e05cee3

Please sign in to comment.