Skip to content

Commit a17ea42

Browse files
authored
fix: Makefile targets for release (#19)
1 parent 78cf043 commit a17ea42

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.semaphore/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ blocks:
1010
jobs:
1111
- name: Execute chart-releaser
1212
commands:
13-
- checkout
13+
- git clone $SEMAPHORE_GIT_URL $SEMAPHORE_GIT_DIR
14+
- cd $SEMAPHORE_GIT_DIR
1415
- make cr.install
1516
- make helm.package
1617
- make helm.upload

Makefile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
PKG_LOCAL_DIR=.pkg
21
GIT_REPO_OWNER=renderedtext
32
GIT_REPO=helm-charts
43

54
helm.package:
6-
helm package charts/* -d $(PKG_LOCAL_DIR)
5+
cr package charts/*
76

87
helm.lint:
98
helm lint charts/*
@@ -12,19 +11,17 @@ helm.upload:
1211
cr upload \
1312
--owner $(GIT_REPO_OWNER) \
1413
--git-repo $(GIT_REPO) \
15-
--package-path $(PKG_LOCAL_DIR) \
1614
--token $$GITHUB_TOKEN \
17-
--packages-with-index \
18-
--skip-existing \
19-
--push
15+
--skip-existing
2016

2117
helm.index:
18+
git config --global user.email "$$GIT_USER_EMAIL"
19+
git config --global user.name "$$GIT_USER_NAME"
20+
git remote set-url origin https://github.com/$(GIT_REPO_OWNER)/$(GIT_REPO)
2221
cr index \
2322
--owner $(GIT_REPO_OWNER) \
2423
--git-repo $(GIT_REPO) \
25-
--package-path $(PKG_LOCAL_DIR) \
2624
--token $$GITHUB_TOKEN \
27-
--packages-with-index \
2825
--index-path . \
2926
--push
3027

0 commit comments

Comments
 (0)