From 5ebeb18f85ce35a71a9886d0a50702cb5ee7dbd6 Mon Sep 17 00:00:00 2001 From: XoR Date: Wed, 12 Mar 2025 12:07:50 +0300 Subject: [PATCH] ArgoCD. --- Taskfile.yml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 82cb1a4..c7d4ce5 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -24,7 +24,7 @@ tasks: desc: Отправка Helm chart в Gitea vars: repo: helm-charts - chart_file: c:\\r\\helm-charts\\gitea\\gitea-11.0.0.tgz + chart_file: c:\\r\\helm-charts\\gitea\\gitea-11.0.1.tgz dir: . cmds: - dir=$(pwd) @@ -32,8 +32,19 @@ tasks: - task: gitea-helm-pack - helm repo add --username {{.username}} --password {{.password}} {{.repo}} https://{{.gitea_url}}/api/packages/{{.owner}}/helm - helm cm-push {{.chart_file}} {{.repo}} - # helm repo add --username {username} --password {password} {repo} https://gitea.example.com/api/packages/{owner}/helm - # helm cm-push ./{chart_file}.tgz {repo} + silent: true + argocd-helm-pub: + desc: Отправка Helm chart в Gitea + vars: + repo: helm-charts + chart_file: c:\\r\\helm-charts\\argo-cd\\argo-cd-7.8.10.tgz + dir: . + cmds: + - dir=$(pwd) + + - task: argocd-helm-pack + - helm repo add --username {{.username}} --password {{.password}} {{.repo}} https://{{.gitea_url}}/api/packages/{{.owner}}/helm + - helm cm-push {{.chart_file}} {{.repo}} silent: true gitea-helm-pack: desc: Pack Helm chart for Gitea @@ -41,7 +52,16 @@ tasks: chart_file: gitea-11.0.0.tgz dir: ./gitea cmds: - - rm -f {{.chart_file}} + - rm -f *.tgz + - helm package . + silent: true + argocd-helm-pack: + desc: Pack Helm chart for ArgoCD + vars: + chart_file: gitea-11.0.0.tgz + dir: ./argo-cd + cmds: + - rm -f *.tgz - helm package . silent: true