Skip to content
Merged
Show file tree
Hide file tree
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
19 changes: 17 additions & 2 deletions .tekton/network-observability-cli-ystream-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,23 @@ metadata:
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
== "main"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" && target_branch == "main" && (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since the downstream dockerfile does this:

COPY commands/ commands/
COPY res/ res/
COPY scripts/ scripts/
COPY Makefile Makefile
COPY .mk/ .mk/

we should include all of these

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, done: dd5cd4e

".tekton/***".pathChanged() ||
".dockerignore".pathChanged() ||
"Dockerfile.downstream".pathChanged() ||
"Dockerfile-args.downstream".pathChanged() ||
"go.mod".pathChanged() ||
"go.sum".pathChanged() ||
"main.go".pathChanged() ||
"Makefile".pathChanged() ||
"cmd/***".pathChanged() ||
"commands/***".pathChanged() ||
"res/***".pathChanged() ||
"scripts/***".pathChanged() ||
".mk/***".pathChanged() ||
"LICENSE".pathChanged()
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: netobserv-ystream
Expand Down
21 changes: 19 additions & 2 deletions .tekton/network-observability-cli-ystream-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,25 @@ metadata:
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
# switch comment in/out at branch cut / release
# pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main"
pipelinesascode.tekton.dev/on-cel-expression: "false"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push" && target_branch == "main" && (
".tekton/***".pathChanged() ||
".dockerignore".pathChanged() ||
"Dockerfile.downstream".pathChanged() ||
"Dockerfile-args.downstream".pathChanged() ||
"go.mod".pathChanged() ||
"go.sum".pathChanged() ||
"main.go".pathChanged() ||
"Makefile".pathChanged() ||
"cmd/***".pathChanged() ||
"commands/***".pathChanged() ||
"res/***".pathChanged() ||
"scripts/***".pathChanged() ||
".mk/***".pathChanged() ||
"LICENSE".pathChanged() ||
"vendor/***".pathChanged()
)
# pipelinesascode.tekton.dev/on-cel-expression: "false"
creationTimestamp: null
labels:
appstudio.openshift.io/application: netobserv-ystream
Expand Down