2018-11-06 21:29:16 +00:00
|
|
|
GIT_COMMIT = $(shell git rev-parse --short HEAD)
|
|
|
|
|
2018-12-05 20:02:37 +00:00
|
|
|
# WARNING: Remember to change the tag when updating the image
|
2018-12-11 14:27:21 +00:00
|
|
|
IMAGE_TAG = 1.1.1
|
2018-12-05 20:02:37 +00:00
|
|
|
IMAGE_NAME = statusteam/windows-desktop-ubuntu:$(IMAGE_TAG)
|
2018-11-06 21:29:16 +00:00
|
|
|
|
2019-01-09 13:59:39 +00:00
|
|
|
REACT_NATIVE_DESKTOP_COMMIT_SHA = 2a76c435a27f0bf6c089f74222212b3a58e10385
|
2019-01-11 18:07:26 +00:00
|
|
|
__read__toolversion__ = $(shell grep $(1) ../../../.TOOLVERSIONS | cut -d'=' -f2-)
|
2019-01-09 13:59:39 +00:00
|
|
|
|
2018-11-06 21:29:16 +00:00
|
|
|
build:
|
2019-01-15 15:34:52 +00:00
|
|
|
rm -rf ./scripts && \
|
|
|
|
mkdir -p ./scripts/3rd-party && \
|
|
|
|
cp -R ../../scripts/3rd-party/ ./scripts/ && \
|
2018-11-06 21:29:16 +00:00
|
|
|
docker build \
|
2019-01-09 13:59:39 +00:00
|
|
|
--build-arg="REACT_NATIVE_DESKTOP_COMMIT_SHA=$(REACT_NATIVE_DESKTOP_COMMIT_SHA)" \
|
2019-01-11 18:07:26 +00:00
|
|
|
--build-arg="CONAN_VERSION=$(call __read__toolversion__,conan)" \
|
|
|
|
--build-arg="LEIN_VERSION=$(call __read__toolversion__,lein)" \
|
|
|
|
--build-arg="NODE_VERSION=$(call __read__toolversion__,node)" \
|
|
|
|
--build-arg="NVM_VERSION=$(call __read__toolversion__,nvm)" \
|
2018-11-06 21:29:16 +00:00
|
|
|
--label="commit=$(GIT_COMMIT)" \
|
2019-01-15 15:34:52 +00:00
|
|
|
-t $(IMAGE_NAME) .; \
|
|
|
|
rm -rf ./scripts
|
2018-11-06 21:29:16 +00:00
|
|
|
|
|
|
|
push: build
|
|
|
|
docker push $(IMAGE_NAME)
|