netty-incubator-buffer-api/Makefile
Chris Vest e3c7f9b632 Capture build artifacts for failed builds
Motivation:
When a build fails, it's desirable to have the build artifacts available
so the build failure can be inspected, investigated and hopefully fixed.

Modification:
Change the Makefile and CI workflow such that the build artifacts are
captured and uploaded when the build fails.

Result:
A "target.zip" file is now available for download on failed GitHub
Actions builds.
2020-12-01 14:38:09 +01:00

24 lines
782 B
Makefile

.PHONY: image test dbg clean build
.DEFAULT_GOAL := build
image:
docker build $(DOCKER_BUILD_OPTS) --tag netty-incubator-buffer:build .
test: image
docker run --rm --name build-container netty-incubator-buffer:build
dbg:
docker create --name build-container-dbg --entrypoint /bin/bash -t netty-incubator-buffer:build
docker start build-container-dbg
docker exec -it build-container-dbg bash
clean:
docker rm -fv build-container-dbg
build: image
docker create --name build-container netty-incubator-buffer:build
docker start -a build-container || (docker cp build-container:/home/build/target . && false)
docker wait build-container || (docker cp build-container:/home/build/target . && false)
docker cp build-container:/home/build/target .
docker rm build-container