2019-01-18 14:09:23 +00:00
|
|
|
__toolversion = $(shell $(GIT_ROOT)/scripts/toolversion $(1))
|
|
|
|
|
2018-11-06 21:29:16 +00:00
|
|
|
GIT_COMMIT = $(shell git rev-parse --short HEAD)
|
2019-01-21 15:29:33 +00:00
|
|
|
GIT_ROOT = $(shell git rev-parse --show-toplevel)
|
2018-11-06 21:29:16 +00:00
|
|
|
|
2018-12-05 20:02:37 +00:00
|
|
|
# WARNING: Remember to change the tag when updating the image
|
2019-01-18 00:31:07 +00:00
|
|
|
IMAGE_TAG = 1.1.0
|
|
|
|
IMAGE_NAME = statusteam/status-build-windows:$(IMAGE_TAG)
|
2019-01-09 13:59:39 +00:00
|
|
|
|
2018-11-06 21:29:16 +00:00
|
|
|
build:
|
|
|
|
docker build \
|
2019-01-18 00:31:07 +00:00
|
|
|
--build-arg="RNATIVE_VERSION=$(call __toolversion, react_native_desktop)" \
|
|
|
|
--build-arg="CONAN_VERSION=$(call __toolversion, conan)" \
|
|
|
|
--build-arg="CMAKE_VERSION=$(call __toolversion, cmake)" \
|
2018-11-06 21:29:16 +00:00
|
|
|
--label="commit=$(GIT_COMMIT)" \
|
2019-01-15 15:34:52 +00:00
|
|
|
-t $(IMAGE_NAME) .; \
|
2018-11-06 21:29:16 +00:00
|
|
|
|
|
|
|
push: build
|
|
|
|
docker push $(IMAGE_NAME)
|