Skip to content

Commit 6d4b1df

Browse files
committed
chore: add controller-gen to tasks list and some order
The manifests wasn't a dependency for the uncommitted changes and we added the controller-gen missing task, now the uncommited has as dependency the manifest and manifest controller-gen Signed-off-by: Jonathan Gonzalez V. <[email protected]>
1 parent 3b3ca7f commit 6d4b1df

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Taskfile.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ tasks:
4646
4747
uncommitted:
4848
desc: Check for uncommitted changes
49+
deps:
50+
- manifest
4951
env:
5052
# renovate: datasource=git-refs depName=uncommitted lookupName=https://github.com/cloudnative-pg/daggerverse currentValue=main
5153
DAGGER_UNCOMMITTED_SHA: 32dae448c22c7b3207753334307a8e4c9870991a
@@ -243,8 +245,26 @@ tasks:
243245
build --dir . --file containers/Dockerfile.sidecar --platform linux/amd64 --platform linux/arm64
244246
publish --ref {{.SIDECAR_IMAGE_NAME}} --tags {{.IMAGE_VERSION}}
245247
248+
249+
controller-gen:
250+
desc: Run controller-gen
251+
env:
252+
# renovate: datasource=git-refs depName=controller-gen lookupName=https://github.com/cloudnative-pg/daggerverse currentValue=main
253+
DAGGER_CONTROLLER_GEN_SHA: 1ad0ee66473e3a405d1078fcc55df00f2507d14a
254+
cmds:
255+
- >
256+
GITHUB_REF= dagger -s call -m github.com/cloudnative-pg/daggerverse/controller-gen@${DAGGER_CONTROLLER_GEN_SHA}
257+
controller-gen --source . --args object:headerFile=hack/boilerplate.go.txt --args paths=./api/...
258+
file --path api/v1/zz_generated.deepcopy.go export --path api/v1/zz_generated.deepcopy.go
259+
sources:
260+
- ./api/**/*.go
261+
generates:
262+
- ./api/v1/zz_generated.deepcopy.go
263+
246264
manifest:
247265
desc: Update the image in the Kustomization
266+
deps:
267+
- controller-gen
248268
requires:
249269
# We expect this to run in a GitHub workflow, so we put a few GitHub-specific vars here
250270
# to prevent running this task locally by accident.

0 commit comments

Comments
 (0)