Skip to content

Commit

Permalink
ci: fix PATH in Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha committed Jan 12, 2024
1 parent 71c5955 commit 2eef212
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ LXC_BRANCH?=stable-5.0
HACK_D := $(TOP_LEVEL)/hack
# helper tools
TOOLS_D := $(HACK_D)/tools
export PATH := $(TOOLS_D)/bin:$(PATH)
REGCLIENT := $(TOOLS_D)/bin/regctl
REGCLIENT_VERSION := v0.5.1
SKOPEO = $(TOOLS_D)/bin/skopeo
Expand Down Expand Up @@ -157,7 +156,7 @@ check: lint test go-test

.PHONY: test
test: stacker $(REGCLIENT) $(SKOPEO) $(ZOT) $(BATS)
sudo -E \
sudo -E PATH="$$PATH:$(TOOLS_D)/bin" \
STACKER_BUILD_ALPINE_IMAGE=$(STACKER_BUILD_ALPINE_IMAGE) \
STACKER_BUILD_BUSYBOX_IMAGE=$(STACKER_BUILD_BUSYBOX_IMAGE) \
STACKER_BUILD_CENTOS_IMAGE=$(STACKER_BUILD_CENTOS_IMAGE) \
Expand All @@ -171,7 +170,7 @@ check-cov: lint test-cov

.PHONY: test-cov
test-cov: stacker-cov $(REGCLIENT) $(SKOPEO) $(ZOT)
sudo -E \
sudo -E PATH="$$PATH:$(TOOLS_D)/bin" \
-E GOCOVERDIR="$$GOCOVERDIR" \
STACKER_BUILD_ALPINE_IMAGE=$(STACKER_BUILD_ALPINE_IMAGE) \
STACKER_BUILD_BUSYBOX_IMAGE=$(STACKER_BUILD_BUSYBOX_IMAGE) \
Expand Down

0 comments on commit 2eef212

Please sign in to comment.