fix(Makefile): use new version of build-image and fix container run steps

This commit is contained in:
Markus Pesch 2019-06-15 19:12:27 +02:00
parent 402f5d4ff8
commit c81cd2d21c
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -27,10 +27,16 @@ bindata:
go-bindata -pkg logfile -o ./pkg/logfile/bindata_test.go ./pkg/logfile/test
container-build:
$(MAKE) container-run COMMAND=build
container-test:
$(MAKE) container-run COMMAND=test
container-run:
docker run \
--volume ${PWD}:/workspace \
volkerraschek/build-image:1.0.0 \
make build UID=${UID} GID=${GID} VERSION=${VERSION} GOOS=${GOOS} GOARCH=${GOARCH}
volkerraschek/build-image:latest\
make ${COMMAND} UID=${UID} GID=${GID} VERSION=${VERSION} GOOS=${GOOS} GOARCH=${GOARCH}
remote:
$(MAKE) build GOARCH=arm