Skip to content

fix: missing earthly target (used by agent tests) #291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,16 @@ deploy-staging:
argocd app set $APPLICATION \
--parameter image.tag=$TAG \
--auth-token=$AUTH_TOKEN --server=$SERVER --grpc-web
RUN --secret AUTH_TOKEN argocd --auth-token=$AUTH_TOKEN --server=$SERVER --grpc-web app sync $APPLICATION
RUN --secret AUTH_TOKEN argocd --auth-token=$AUTH_TOKEN --server=$SERVER --grpc-web app sync $APPLICATION

### Following targets are used by agent tests
manifests:
FROM --pass-args +controller-gen
COPY (+sources/*) /src
WORKDIR /src/components/operator
COPY --dir config .
RUN --mount=type=cache,id=gomod,target=${GOPATH}/pkg/mod \
--mount=type=cache,id=gobuild,target=/root/.cache/go-build \
controller-gen rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases

SAVE ARTIFACT config AS LOCAL config