Skip to content

Commit

Permalink
Remove SCRIPT_IMAGE param from update infra-deployments task
Browse files Browse the repository at this point in the history
The task we reference in the PipelineRun
quay.io/redhat-appstudio-tekton-catalog/task-slack-webhook-notification:0.1
is changed and the SCRIPT_IMAGE parameter removed. Instead a default
image is used.
ref: konflux-ci/build-definitions#792

The new image does not have `kustomize`, but it has `oc`, so we use
`oc kustomize` instead.
  • Loading branch information
enarha committed Feb 13, 2024
1 parent 2be0e3a commit 95f5f68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .tekton/open-infra-deployment-pr-osp-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ spec:
value: $(params.git-url)
- name: REVISION
value: $(params.revision)
- name: SCRIPT_IMAGE
value: quay.io/devtools_gitops/test_image:4.0.5
- name: SCRIPT
value: $(params.infra-deployment-update-script)
taskRef:
Expand Down
8 changes: 3 additions & 5 deletions .tekton/open-infra-deployment-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ spec:
sed -i -E 's/[0-9a-f]{40}/{{ revision }}/g' components/pipeline-service/development/kustomization.yaml
sed -i -E 's/[0-9a-f]{40}/{{ revision }}/g' components/pipeline-service/staging/base/kustomization.yaml
sed -i -E 's/[0-9a-f]{40}/{{ revision }}/g' components/monitoring/grafana/base/dashboards/pipeline-service/kustomization.yaml
kustomize build components/pipeline-service/staging/stone-stg-m01/resources/ > components/pipeline-service/staging/stone-stg-m01/deploy.yaml
kustomize build components/pipeline-service/staging/stone-stg-rh01/resources/ > components/pipeline-service/staging/stone-stg-rh01/deploy.yaml
kustomize build components/pipeline-service/staging/stone-stage-p01/resources/ > components/pipeline-service/staging/stone-stage-p01/deploy.yaml
oc kustomize build components/pipeline-service/staging/stone-stg-m01/resources/ > components/pipeline-service/staging/stone-stg-m01/deploy.yaml
oc kustomize build components/pipeline-service/staging/stone-stg-rh01/resources/ > components/pipeline-service/staging/stone-stg-rh01/deploy.yaml
oc kustomize build components/pipeline-service/staging/stone-stage-p01/resources/ > components/pipeline-service/staging/stone-stage-p01/deploy.yaml
- name: slack-webhook-notification-team
value: pipeline
pipelineSpec:
Expand All @@ -42,8 +42,6 @@ spec:
value: $(params.git-url)
- name: REVISION
value: $(params.revision)
- name: SCRIPT_IMAGE
value: quay.io/devtools_gitops/test_image:4.0.5
- name: SCRIPT
value: $(params.infra-deployment-update-script)
taskRef:
Expand Down

0 comments on commit 95f5f68

Please sign in to comment.