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 d6b2fb4369
commit 98c8ec138a
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@ build:
test: build rm-test-image
@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"
scan: build