Skip to content

Commit

Permalink
Testing new way to get folder
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulreddy15 committed Feb 13, 2025
1 parent d65b239 commit 907bc88
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 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 Down

0 comments on commit 907bc88

Please sign in to comment.