Skip to content

Commit

Permalink
fix: Makefile targets for release (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaspin authored Aug 3, 2023
1 parent 78cf043 commit a17ea42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .semaphore/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ blocks:
jobs:
- name: Execute chart-releaser
commands:
- checkout
- git clone $SEMAPHORE_GIT_URL $SEMAPHORE_GIT_DIR
- cd $SEMAPHORE_GIT_DIR
- make cr.install
- make helm.package
- make helm.upload
Expand Down
13 changes: 5 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
PKG_LOCAL_DIR=.pkg
GIT_REPO_OWNER=renderedtext
GIT_REPO=helm-charts

helm.package:
helm package charts/* -d $(PKG_LOCAL_DIR)
cr package charts/*

helm.lint:
helm lint charts/*
Expand All @@ -12,19 +11,17 @@ helm.upload:
cr upload \
--owner $(GIT_REPO_OWNER) \
--git-repo $(GIT_REPO) \
--package-path $(PKG_LOCAL_DIR) \
--token $$GITHUB_TOKEN \
--packages-with-index \
--skip-existing \
--push
--skip-existing

helm.index:
git config --global user.email "$$GIT_USER_EMAIL"
git config --global user.name "$$GIT_USER_NAME"
git remote set-url origin https://github.com/$(GIT_REPO_OWNER)/$(GIT_REPO)
cr index \
--owner $(GIT_REPO_OWNER) \
--git-repo $(GIT_REPO) \
--package-path $(PKG_LOCAL_DIR) \
--token $$GITHUB_TOKEN \
--packages-with-index \
--index-path . \
--push

Expand Down

0 comments on commit a17ea42

Please sign in to comment.