# 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