mirror of
https://github.com/bvanroll/example-node-project.git
synced 2025-08-29 11:52:43 +00:00
19 lines
729 B
Makefile
Executable File
19 lines
729 B
Makefile
Executable File
OS := $(shell uname)
|
|
|
|
preview:
|
|
ifeq ($(OS),Darwin)
|
|
sed -i "" -e "s/version:.*/version: $(PREVIEW_VERSION)/" Chart.yaml
|
|
sed -i "" -e "s/version:.*/version: $(PREVIEW_VERSION)/" ../*/Chart.yaml
|
|
sed -i "" -e "s/tag:.*/tag: $(PREVIEW_VERSION)/" values.yaml
|
|
else ifeq ($(OS),Linux)
|
|
sed -i -e "s/version:.*/version: $(PREVIEW_VERSION)/" Chart.yaml
|
|
sed -i -e "s/version:.*/version: $(PREVIEW_VERSION)/" ../*/Chart.yaml
|
|
sed -i -e "s|repository:.*|repository: $(DOCKER_REGISTRY)\/flowfactor\/frontend-node|" values.yaml
|
|
sed -i -e "s/tag:.*/tag: $(PREVIEW_VERSION)/" values.yaml
|
|
else
|
|
echo "platfrom $(OS) not supported to release from"
|
|
exit -1
|
|
endif
|
|
echo " version: $(PREVIEW_VERSION)" >> requirements.yaml
|
|
jx step helm build
|