Skip to content

Commit

Permalink
Makefile: set the proper repository url for the index generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Hector Fernandez committed Jul 2, 2019
1 parent adcf308 commit 2534ae7
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,22 @@ clean:
@rm -rf docs/staging docs/stable

.PHONY: stagingrepo
stagingrepo: docs/staging/index.yaml $(STAGING_TARGETS)
stagingrepo: $(STAGING_TARGETS) | docs/staging/index.yaml

.PHONY: stablerepo
stablerepo: docs/stable/index.yaml $(STABLE_TARGETS)
stablerepo: $(STABLE_TARGETS) | docs/stable/index.yaml

.PHONY: publish-ci
publish-ci:
@git remote add publish [email protected]:mesosphere/charts >/dev/null 2>&1 || true
@git branch -d master >/dev/null 2>&1 || true
@git checkout -B master
@make all
@git add .
@git commit -m 'docs: publish repo updates'
@git push -f publish $(PULL_REQUEST_ID)
@git request-pull master ./
@git checkout -

.PHONY: publish
publish:
Expand All @@ -33,7 +45,7 @@ publish:
@git checkout -B master
@make all
@git add .
@git commit -m 'publish repo'
@git commit -m 'docs: publish repo updates'
@echo git push -f publish master
@git checkout -

Expand All @@ -50,8 +62,7 @@ $(STABLE_TARGETS) $(STAGING_TARGETS): $(TMPDIR)/.helm/repository/local/index.yam
%/index.yaml: $(STABLE_TARGETS) $(STAGING_TARGETS)
%/index.yaml: $(TMPDIR)/.helm/repository/local/index.yaml
@mkdir -p $(patsubst %/index.yaml,%,$@)
$(HELM) --home $(TMPDIR)/.helm repo index $(patsubst %/index.yaml,%,$@)
$(HELM) --home $(TMPDIR)/.helm repo index $(patsubst %/index.yaml,%,$@) --url=https://mesosphere.github.io/charts/$(patsubst docs/%index.yaml,%,$@)

$(TMPDIR)/.helm/repository/local/index.yaml: $(HELM)
$(HELM) --home $(TMPDIR)/.helm init --client-only

0 comments on commit 2534ae7

Please sign in to comment.