Files
rustfs-manager-operator/Taskfile.yml
Nikolai Rodionov dd4151c10f
Some checks failed
ci/woodpecker/pr/publish-tagged-helm-chart Pipeline is pending
ci/woodpecker/pr/test-helm-charts Pipeline is pending
ci/woodpecker/pr/build-dev-docs-container/1 Pipeline was successful
ci/woodpecker/pr/code-checks Pipeline was successful
ci/woodpecker/pr/publish-dev-helm-chart Pipeline failed
ci/woodpecker/pr/build-dev-docs-container/2 Pipeline failed
ci/woodpecker/tag/build-tagged-version/2 Pipeline failed
ci/woodpecker/tag/build-tagged-version/1 Pipeline failed
First more or less working version
Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
2026-03-20 16:08:05 +01:00

25 lines
657 B
YAML

# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"
vars:
GREETING: Hello, world!
tasks:
pre-commit-all:
desc: Run pre-commit --all
silent: true
cmd: pre-commit run --all
sync-crds:
desc: Sync CRD from the operator to the chart
silent: true
vars:
WORKDIR:
sh: mktemp -d
cmds:
- cd operator && cargo run -- --print-crd > {{.WORKDIR}}/crds.yaml
- cd {{.WORKDIR}} && yq -s '.metadata.name + ".yaml"' crds.yaml && rm crds.yaml
- rm -rf ./charts/rustfs-manager-operator/crd/*
- cp {{.WORKDIR}}/* ./helm/rustfs-manager-operator/crd/
- rm -rf {{.WORKDIR}}