mirror of
https://github.com/bvanroll/test-repo.git
synced 2025-08-30 04:22:41 +00:00
Draft create
This commit is contained in:
18
charts/preview/Makefile
Executable file
18
charts/preview/Makefile
Executable file
@@ -0,0 +1,18 @@
|
||||
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
|
Reference in New Issue
Block a user