mirror of
https://github.com/status-im/status-react.git
synced 2025-01-27 19:26:05 +00:00
Jakub Sokołowski
e87464e5ba
Squashed commits: - initial work - make base image use all the versions - make desktop images use the base image - update ci to use new images - use new toolversion script - update android image tag - add missing android-26 platform - fix installing packages with sdkmanager - fix installation of react-native-cli - specify prefix path for npm install -g Signed-off-by: Jakub Sokołowski <jakub@status.im>
23 lines
724 B
Makefile
23 lines
724 B
Makefile
__toolversion = $(shell $(GIT_ROOT)/scripts/toolversion $(1))
|
|
|
|
GIT_COMMIT = $(shell git rev-parse --short HEAD)
|
|
GIT_ROOT = $(shell git rev-parse --show-toplevel)
|
|
|
|
# WARNING: Remember to change the tag when updating the image
|
|
IMAGE_TAG = 1.1.0
|
|
IMAGE_NAME = statusteam/status-build-base:$(IMAGE_TAG)
|
|
|
|
build: nvm_install.sh
|
|
docker build \
|
|
--build-arg="LEIN_VERSION=$(call __toolversion, leiningen)" \
|
|
--build-arg="NODE_VERSION=$(call __toolversion, node)" \
|
|
--build-arg="YARN_VERSION=$(call __toolversion, yarn)" \
|
|
--label="commit=$(GIT_COMMIT)" \
|
|
-t $(IMAGE_NAME) .
|
|
|
|
nvm_install.sh:
|
|
cp $(GIT_ROOT)/scripts/3rd-party/nvm/$(call __toolversion, nvm)/install.sh nvm_install.sh
|
|
|
|
push: build
|
|
docker push $(IMAGE_NAME)
|