Makefile: Remove test dependency on docker-build

Prevent running the tests twice in e2e workflow by removing the
dependency on docker-build on test.
Update e2e workflow to remove setting KUBEBUILDER_ASSETS needed to run
tests from "Build container image" step.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
This commit is contained in:
Sunny 2021-10-13 20:42:51 +05:30
parent 911f186b1a
commit fd79fac12c
2 changed files with 1 additions and 3 deletions

View File

@ -71,8 +71,6 @@ jobs:
BUILD_PLATFORMS=linux/amd64 \
BUILD_ARGS="--cache-from=type=local,src=/tmp/.buildx-cache \
--cache-to=type=local,dest=/tmp/.buildx-cache-new,mode=max"
env:
KUBEBUILDER_ASSETS: ${{ github.workspace }}/kubebuilder/bin
- # Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896

View File

@ -86,7 +86,7 @@ generate: controller-gen
cd api; $(CONTROLLER_GEN) object:headerFile="../hack/boilerplate.go.txt" paths="./..."
# Build the docker image
docker-build: test
docker-build:
docker buildx build \
--platform=$(BUILD_PLATFORMS) \
-t ${IMG} \