22 lines
818 B
Makefile
22 lines
818 B
Makefile
GIT_COMMIT = $(shell git rev-parse --short HEAD)
|
|
|
|
# WARNING: Remember to change the tag when updating the image
|
|
IMAGE_TAG = 1.1.1
|
|
IMAGE_NAME = statusteam/windows-desktop-ubuntu:$(IMAGE_TAG)
|
|
|
|
REACT_NATIVE_DESKTOP_COMMIT_SHA = 2a76c435a27f0bf6c089f74222212b3a58e10385
|
|
__read__toolversion__ = $(shell grep $(1) ../../../.TOOLVERSIONS | cut -d'=' -f2-)
|
|
|
|
build:
|
|
docker build \
|
|
--build-arg="REACT_NATIVE_DESKTOP_COMMIT_SHA=$(REACT_NATIVE_DESKTOP_COMMIT_SHA)" \
|
|
--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)" \
|
|
--label="commit=$(GIT_COMMIT)" \
|
|
-t $(IMAGE_NAME) .
|
|
|
|
push: build
|
|
docker push $(IMAGE_NAME)
|