-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): release yatai-image-builder-crds
- Loading branch information
Showing
3 changed files
with
67 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,10 @@ jobs: | |
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Render Helm Template | ||
- name: Render yatai-image-builder-crds Helm Template | ||
working-directory: ./helm/yatai-image-builder-crds | ||
run: make template | ||
|
||
- name: Render yatai-image-builder Helm Template | ||
working-directory: ./helm/yatai-image-builder | ||
run: make template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.DEFAULT_GOAL := help | ||
|
||
ifndef VERSION | ||
VERSION := "0.0.1-dummy.1" | ||
endif | ||
|
||
ifndef CLONE_DIR | ||
CLONE_DIR := $(shell mktemp -d) | ||
endif | ||
|
||
help: ## Show all Makefile targets | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
lint: | ||
ct lint --all | ||
|
||
cleanup: | ||
rm yatai-image-builder-crds-*.tgz || true | ||
|
||
release: cleanup | ||
helm package . --version ${VERSION} --app-version ${VERSION} | ||
if [ ${GITHUB_ACTIONS} ]; then git config --global user.name "github-actions[bot]"; fi | ||
if [ ${GITHUB_ACTIONS} ]; then git config --global user.email "github-actions[bot]@users.noreply.github.com"; fi | ||
if [ ${GITHUB_ACTIONS} ]; then git config --global credential.helper store; fi | ||
git clone --single-branch --branch gh-pages "https://x-access-token:${API_TOKEN_GITHUB}@github.com/bentoml/helm-charts.git" "${CLONE_DIR}" | ||
cp yatai-image-builder-crds-${VERSION}.tgz ${CLONE_DIR}/packages/ | ||
cd ${CLONE_DIR}; helm repo index . | ||
cd ${CLONE_DIR}; git add . && git commit --message "release yatai-image-builder-crds ${VERSION}" && git push -f origin HEAD:gh-pages || exit 1 | ||
rm -rf ${CLONE_DIR} || true | ||
|
||
release-devel: cleanup | ||
helm package . --version ${VERSION} --app-version ${VERSION} | ||
if [ ${GITHUB_ACTIONS} ]; then git config --global user.name "github-actions[bot]"; fi | ||
if [ ${GITHUB_ACTIONS} ]; then git config --global user.email "github-actions[bot]@users.noreply.github.com"; fi | ||
if [ ${GITHUB_ACTIONS} ]; then git config --global credential.helper store; fi | ||
git clone --single-branch --branch gh-pages "https://x-access-token:${API_TOKEN_GITHUB}@github.com/bentoml/helm-charts-devel.git" "${CLONE_DIR}" | ||
cp yatai-image-builder-crds-${VERSION}.tgz ${CLONE_DIR}/packages/ | ||
cd ${CLONE_DIR}; helm repo index . | ||
cd ${CLONE_DIR}; git add . && git commit --message "release yatai-image-builder-crds ${VERSION}" && git push -f origin HEAD:gh-pages || exit 1 | ||
rm -rf ${CLONE_DIR} || true | ||
|
||
template: | ||
helm template yatai-image-builder-crds ./ -n yatai-image-builder-crds --debug | ||
|