forked from gooddata/gooddata-react-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (22 loc) · 660 Bytes
/
Makefile
File metadata and controls
24 lines (22 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
include docker/.config
DOCKER_REGISTRY=harbor.intgdc.com/tools
SOURCES_FILE=gooddata-react-components-web.tar.gz
# NPM_AUTH_TOKEN variable will be taken from CI env variables
.PHONY: dist
dist: clean
docker pull $(DOCKER_REGISTRY)/$(IMAGE_NAME) \
&& docker run --rm -e NPM_AUTH_TOKEN=$(NPM_AUTH_TOKEN) \
-v $(CURDIR):/workspace \
-v /tmp:/tmp \
-w /workspace \
-e WORKSPACE=/workspace \
-e USERID=$(shell id -u $(USER)) \
-e CLIENT_PATH=/workspace \
$(DOCKER_REGISTRY)/$(IMAGE_NAME) cl-builder -p rpm-build
.PHONY: tarball
tarball: dist
tar czvf specs/$(SOURCES_FILE) dist-storybook/
.PHONY: clean
clean:
rm -rf dist
rm -f $(SOURCES_FILE)