Feat: Execute tests via docker run rather than at the end of the test build process

This commit is contained in:
Stefan Reimer 2022-02-24 11:53:29 +01:00
parent 02e4ba85b2
commit 629215ea9a

View File

@ -19,7 +19,8 @@ build:
test: build rm-test-image test: build rm-test-image
@test -f Dockerfile.test && \ @test -f Dockerfile.test && \
docker build --rm -t $(IMAGE):$(TAG)-test --from=$(IMAGE):$(TAG) -f Dockerfile.test . || \ { docker build --rm -t $(IMAGE):$(TAG)-test --from=$(IMAGE):$(TAG) -f Dockerfile.test . && \
docker run --rm --env-host -t $(IMAGE):$(TAG)-test; } || \
echo "No Dockerfile.test found, skipping test" echo "No Dockerfile.test found, skipping test"
scan: build scan: build