Skip to content

Commit 706387e

Browse files
committed
switch back off yq for sed for pinning watcher image, but get it working
rh-pre-commit.version: 2.3.0 rh-pre-commit.check-secrets: ENABLED
1 parent 97b4239 commit 706387e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.tekton/open-infra-deployment-pr-osp-nightly.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ spec:
1919
value: |
2020
sed -i -E 's/[0-9a-f]{40}/{{ revision }}/g' components/pipeline-service/development/kustomization.yaml
2121
# just pin the watcher image, which is the second image ref
22-
yq -e -i '.images[1].newTag = "bae7851ff584423503af324200f52cd28ca99116"' components/pipeline-service/development/kustomization.yaml
22+
sed -i -E '/name: quay.io\/redhat-appstudio\/tekton-results-watcher/{n;s/newTag: {{ revision }}/newTag: bae7851ff584423503af324200f52cd28ca99116/}' components/pipeline-service/development/kustomization.yaml
2323
sed -i -E 's/[0-9a-f]{40}/{{ revision }}/g' components/pipeline-service/staging/base/kustomization.yaml
2424
# just pin the watcher image, which is the second image ref
25-
yq -e -i '.images[1].newTag = "bae7851ff584423503af324200f52cd28ca99116"' components/pipeline-service/staging/base/kustomization.yaml
25+
sed -i -E '/name: quay.io\/redhat-appstudio\/tekton-results-watcher/{n;s/newTag: {{ revision }}/newTag: bae7851ff584423503af324200f52cd28ca99116/}' components/pipeline-service/staging/base/kustomization.yaml
2626
sed -i -E 's/[0-9a-f]{40}/{{ revision }}/g' components/monitoring/grafana/base/dashboards/pipeline-service/kustomization.yaml
2727
- name: slack-webhook-notification-team
2828
value: pipeline

.tekton/open-infra-deployment-pr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ spec:
1717
value: |
1818
sed -i -E 's/[0-9a-f]{40}/{{ revision }}/g' components/pipeline-service/development/kustomization.yaml
1919
# just pin the watcher image, which is the second image ref
20-
yq -e -i '.images[1].newTag = "bae7851ff584423503af324200f52cd28ca99116"' components/pipeline-service/development/kustomization.yaml
20+
sed -i -E '/name: quay.io\/redhat-appstudio\/tekton-results-watcher/{n;s/newTag: {{ revision }}/newTag: bae7851ff584423503af324200f52cd28ca99116/}' components/pipeline-service/development/kustomization.yaml
2121
sed -i -E 's/[0-9a-f]{40}/{{ revision }}/g' components/pipeline-service/staging/base/kustomization.yaml
2222
# just pin the watcher image, which is the second image ref
23-
yq -e -i '.images[1].newTag = "bae7851ff584423503af324200f52cd28ca99116"' components/pipeline-service/staging/base/kustomization.yaml
23+
sed -i -E '/name: quay.io\/redhat-appstudio\/tekton-results-watcher/{n;s/newTag: {{ revision }}/newTag: bae7851ff584423503af324200f52cd28ca99116/}' components/pipeline-service/staging/base/kustomization.yaml
2424
sed -i -E 's/[0-9a-f]{40}/{{ revision }}/g' components/monitoring/grafana/base/dashboards/pipeline-service/kustomization.yaml
2525
oc kustomize components/pipeline-service/staging/stone-stg-m01/resources/ > components/pipeline-service/staging/stone-stg-m01/deploy.yaml
2626
oc kustomize components/pipeline-service/staging/stone-stg-rh01/resources/ > components/pipeline-service/staging/stone-stg-rh01/deploy.yaml

0 commit comments

Comments
 (0)