mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-29 18:04:55 +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>
30 lines
1012 B
Makefile
30 lines
1012 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)
|
|
|
|
QT_VERSION = $(call __toolversion, qt)
|
|
QT_MD5SUM = $(call __toolversion, qt_md5)
|
|
QT_ARCHIVE = qt-opensource-linux-x64-$(QT_VERSION).run
|
|
QT_URL = https://download.qt.io/archive/qt
|
|
|
|
# WARNING: Remember to change the tag when updating the image
|
|
IMAGE_TAG = 1.1.0
|
|
IMAGE_NAME = statusteam/status-build-linux:$(IMAGE_TAG)
|
|
|
|
build: $(QT_ARCHIVE)
|
|
docker build \
|
|
--build-arg="QT_VERSION=$(QT_VERSION)" \
|
|
--build-arg="QT_CI_COMMIT=$(call __toolversion, qtci)" \
|
|
--build-arg="RNATIVE_VERSION=$(call __toolversion, react_native_desktop)" \
|
|
--build-arg="CMAKE_VERSION=$(call __toolversion, cmake)" \
|
|
--label="commit=$(GIT_COMMIT)" \
|
|
-t $(IMAGE_NAME) .; \
|
|
|
|
$(QT_ARCHIVE):
|
|
wget $(QT_URL)/$(call __major_version__, $(QT_VERSION))/$(QT_VERSION)/$(QT_ARCHIVE)
|
|
echo "$(QT_MD5SUM) $(QT_ARCHIVE)" | md5sum --check
|
|
|
|
push: build
|
|
docker push $(IMAGE_NAME)
|