Skip to content

Commit

Permalink
Merge pull request #171 from msherif1234/update_images
Browse files Browse the repository at this point in the history
use configmap update script to trigger agent nudging
  • Loading branch information
msherif1234 authored Sep 14, 2024
2 parents 6423eb8 + 77b6dd8 commit f365d06
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 23 deletions.
4 changes: 3 additions & 1 deletion .tekton/bpfman-agent-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
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" &&
(".tekton/***".pathChanged() ||
(".tekton/multi-arch-build-pipeline.yaml".pathChanged() ||
".tekton/bpfman-agent-pull-request.yaml".pathChanged() ||
".tekton/bpfman-agent-push.yaml".pathChanged() ||
"apis/***".pathChanged() ||
"controllers/***".pathChanged() ||
"cmd/***".pathChanged() ||
Expand Down
6 changes: 4 additions & 2 deletions .tekton/bpfman-agent-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ metadata:
build.appstudio.openshift.io/repo: https://github.com/bpfman/bpfman-operator?rev={{revision}}
build.appstudio.redhat.com/commit_sha: '{{revision}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
build.appstudio.openshift.io/build-nudge-files: "hack/update_bundle.sh"
build.appstudio.openshift.io/build-nudge-files: "hack/update_configmap.sh"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" &&
(".tekton/***".pathChanged() ||
(".tekton/multi-arch-build-pipeline.yaml".pathChanged() ||
".tekton/bpfman-agent-pull-request.yaml".pathChanged() ||
".tekton/bpfman-agent-push.yaml".pathChanged() ||
"apis/***".pathChanged() ||
"controllers/***".pathChanged() ||
"cmd/***".pathChanged() ||
Expand Down
7 changes: 4 additions & 3 deletions .tekton/bpfman-operator-bundle-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ metadata:
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" &&
(".tekton/***".pathChanged() ||
(".tekton/single-arch-build-pipeline.yaml".pathChanged() ||
".tekton/bpfman-operator-bundle-pull-request.yaml".pathChanged() ||
".tekton/bpfman-operator-bundle-push.yaml".pathChanged() ||
"Containerfile.bundle.openshift".pathChanged() ||
"bundle/***".pathChanged() ||
"hack/update_bundle.sh".pathChanged() ||
"hack/update_configmap.sh".pathChanged())
"hack/***".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: bpfman-operator
Expand Down
7 changes: 4 additions & 3 deletions .tekton/bpfman-operator-bundle-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ metadata:
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" &&
(".tekton/***".pathChanged() ||
(".tekton/single-arch-build-pipeline.yaml".pathChanged() ||
".tekton/bpfman-operator-bundle-pull-request.yaml".pathChanged() ||
".tekton/bpfman-operator-bundle-push.yaml".pathChanged() ||
"Containerfile.bundle.openshift".pathChanged() ||
"bundle/***".pathChanged() ||
"hack/update_bundle.sh".pathChanged() ||
"hack/update_configmap.sh".pathChanged())
"hack/***".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: bpfman-operator
Expand Down
6 changes: 2 additions & 4 deletions .tekton/bpfman-operator-catalog-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ metadata:
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" &&
(".tekton/***".pathChanged() ||
(".tekton/bpfman-operator-catalog-pull-request.yaml".pathChanged() ||
"Containerfile.catalog.openshift".pathChanged() ||
"catalog/***".pathChanged() ||
"hack/update_bundle.sh".pathChanged() ||
"hack/update_configmap.sh".pathChanged())
"catalog/***".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: fbc-4-17
Expand Down
7 changes: 1 addition & 6 deletions .tekton/bpfman-operator-catalog-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ metadata:
build.appstudio.redhat.com/commit_sha: '{{revision}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" &&
(".tekton/***".pathChanged() ||
"Containerfile.catalog.openshift".pathChanged() ||
"catalog/***".pathChanged() ||
"hack/update_bundle.sh".pathChanged() ||
"hack/update_configmap.sh".pathChanged())
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main"
creationTimestamp: null
labels:
appstudio.openshift.io/application: fbc-4-17
Expand Down
4 changes: 3 additions & 1 deletion .tekton/bpfman-operator-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
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" &&
(".tekton/***".pathChanged() ||
(".tekton/multi-arch-build-pipeline.yaml".pathChanged() ||
".tekton/bpfman-operator-pull-request.yaml".pathChanged() ||
".tekton/bpfman-operator-push.yaml".pathChanged() ||
"apis/***".pathChanged() ||
"controllers/***".pathChanged() ||
"cmd/***".pathChanged() ||
Expand Down
6 changes: 3 additions & 3 deletions .tekton/bpfman-operator-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
build.appstudio.openshift.io/build-nudge-files: "hack/update_bundle.sh"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" &&
(".tekton/***".pathChanged() ||
(".tekton/multi-arch-build-pipeline.yaml".pathChanged() ||
".tekton/bpfman-operator-pull-request.yaml".pathChanged() ||
".tekton/bpfman-operator-push.yaml".pathChanged() ||
"apis/***".pathChanged() ||
"controllers/***".pathChanged() ||
"cmd/***".pathChanged() ||
Expand All @@ -20,8 +22,6 @@ metadata:
"pkg/***".pathChanged() ||
"internal/***".pathChanged() ||
"test/***".pathChanged() ||
"internal/***".pathChanged() ||
"test/***".pathChanged() ||
"vendor/***".pathChanged())
creationTimestamp: null
labels:
Expand Down

0 comments on commit f365d06

Please sign in to comment.