mirror of
https://github.com/bvanroll/test-repo.git
synced 2025-08-29 12:02:39 +00:00
19 lines
731 B
Makefile
Executable File
19 lines
731 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)\/beppevanrolleghem\/test-repo|" 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
|