diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..82cb1a4 --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,53 @@ +# https://taskfile.dev + +version: "3" + +vars: + gitea_url: git.benadis.ru + username: helm + password: r4E-C9C-iBD-JK2 + owner: helm + chart_file: "" +tasks: + # gitea-helm-publish: + # desc: Publish Helm chart to Gitea + # vars: + # chart_file: c:\\r\\helm-charts\\gitea\\gitea-11.0.0.tgz + # dir: . + # cmds: + # - dir=$(pwd) + + # - task: gitea-helm-pack + # - curl --user {{.username}}:{{.password}} -X POST --upload-file {{.chart_file}} https://{{.gitea_url}}/api/packages/{{.owner}}/helm/api/charts + # silent: true + gitea-helm-pub: + desc: Отправка Helm chart в Gitea + vars: + repo: helm-charts + chart_file: c:\\r\\helm-charts\\gitea\\gitea-11.0.0.tgz + dir: . + cmds: + - dir=$(pwd) + + - 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 + gitea-helm-pack: + desc: Pack Helm chart for Gitea + vars: + chart_file: gitea-11.0.0.tgz + dir: ./gitea + cmds: + - rm -f {{.chart_file}} + - helm package . + silent: true + + helm-push-inst: + desc: Установка плагина helm-push + dir: . + cmds: + - helm plugin install https://github.com/chartmuseum/helm-push + silent: true diff --git a/gitea/.helmignore b/gitea/.helmignore index 43ad621..a2933c6 100644 --- a/gitea/.helmignore +++ b/gitea/.helmignore @@ -3,6 +3,7 @@ # negation (prefixed with !). Only one pattern per line. .DS_Store # Common VCS dirs +*.tgz .git/ .gitignore .gitmodules