diff --git a/.gitignore b/.gitignore index 0ccbe10..6ef58d8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,4 @@ node_modules .vitepress/dist .vitepress/cache tmp -manifest.yaml -*.tgz \ No newline at end of file +manifest.yaml \ No newline at end of file diff --git a/index.md b/index.md index 05873ff..2fc7795 100644 --- a/index.md +++ b/index.md @@ -21,7 +21,7 @@ hero: ## Usage -Install this Helm repository. +Install [this Helm repository](/index.yaml). ```bash helm repo add kubernetes-build https://kubernetes.build @@ -65,9 +65,19 @@ task forward-odoo ### Release -Create new release for this repository. +Adjust the version in `Chart.yaml`. -#FIXME +Create new package for this repository. + +```bash +task package +``` + +Update index file. + +```bash +task index +``` ### Show log files diff --git a/index.yaml b/index.yaml index 0795ca5..8a17965 100644 --- a/index.yaml +++ b/index.yaml @@ -3,12 +3,12 @@ entries: odoo: - apiVersion: v2 appVersion: 1.0.0 - created: "2025-03-13T16:45:29.965470644+01:00" + created: "2025-03-13T17:01:53.80074207+01:00" description: Mint System Odoo - digest: b0cffc6c3410beab397cbdddde2baa444999501f0ef46a64052f7daf6e73d978 + digest: 4419c9279d57aa8fb149f5927f1cd4c74be02c033d0f043bce9d974956408c1a name: odoo type: application urls: - odoo-0.1.0.tgz version: 0.1.0 -generated: "2025-03-13T16:45:29.963998722+01:00" +generated: "2025-03-13T17:01:53.770579802+01:00" diff --git a/odoo-0.1.0.tgz b/odoo-0.1.0.tgz new file mode 100644 index 0000000..f9aa7d6 Binary files /dev/null and b/odoo-0.1.0.tgz differ diff --git a/package.json b/package.json index 63bce6b..cc6782f 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,9 @@ "vitepress": "^1.6.3" }, "scripts": { - "build": "./task build", "docs:dev": "vitepress dev", "docs:build": "vitepress build", - "docs:preview": "vitepress preview" + "docs:preview": "vitepress preview", + "publish": "./task publish" } } \ No newline at end of file diff --git a/task b/task index 8174418..44e35a4 100755 --- a/task +++ b/task @@ -36,7 +36,7 @@ function help() { printf "$COLUMN" "update-with-llm" "[path][prompt]" "Update files with LLM prompt." printf "$COLUMN" "package" "" "Package Helm Chart." printf "$COLUMN" "index" "" "Index Helm Chart." - printf "$COLUMN" "build" "" "Package Helm Chart and site." + printf "$COLUMN" "publish" "" "Copy Helm Chart packages and repo index." echo } @@ -85,12 +85,6 @@ function start-minikube() { } function apply-odoo() { - # echo "Template the manifest files." - # helm template odoo . > manifest.yaml - - # echo "Apply manifest files." - # kubectl apply -f manifest.yaml - echo "Install release odoo with Helm." helm install odoo . @@ -117,13 +111,21 @@ function forward-odoo() { # Helm Commands function package() { + echo "Package Helm Chart." helm package . } function index() { + echo "Update index.yaml" helm repo index . } +function publish() { + build-vitepress + cp *.tgz .vitepress/dist + cp index.yaml .vitepress/dist +} + # LLM Commands function update-with-llm() { @@ -221,10 +223,6 @@ if declare -f "$1" > /dev/null; then "$1" "${@:2}" else case "$1" in - build) - build-vitepress - package - ;; *) echo "Unknown command: $1" help