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