Skip to content

Commit

Permalink
[ISV-4091] Align release pipeline to the new version of detect-changes (
Browse files Browse the repository at this point in the history
#509)

Signed-off-by: Maurizio Porrato <[email protected]>
  • Loading branch information
mporrato authored Oct 2, 2023
1 parent a085154 commit d20b0a0
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ spec:
- name: url
value: "$(params.git_fork_url)"
- name: revision
value: "$(params.git_pr_branch)"
value: "$(params.git_commit)"
- name: gitInitImage
value: registry.redhat.io/openshift-pipelines/pipelines-git-init-rhel8@sha256:bc551c776fb3d0fcc6cfd6d8dc9f0030de012cb9516fac42b1da75e6771001d9
workspaces:
Expand All @@ -121,7 +121,7 @@ spec:
- clone-repository
params:
- name: url
value: "$(params.git_fork_url)"
value: "$(params.git_repo_url)"
- name: revision
value: "$(params.git_commit_base)"
- name: gitInitImage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ spec:
- name: env
value: $(params.env)

# clone repository
# Clone the repository contents from the PR branch
- name: clone-repository
taskRef:
name: git-clone
Expand All @@ -113,11 +113,9 @@ spec:
- set-env-community
params:
- name: url
value: $(params.git_repo_url)
value: "$(params.git_repo_url)"
- name: revision
value: $(params.git_base_branch)
- name: depth
value: 25
value: "$(params.git_commit)"
- name: gitInitImage
value: registry.redhat.io/openshift-pipelines/pipelines-git-init-rhel8@sha256:bc551c776fb3d0fcc6cfd6d8dc9f0030de012cb9516fac42b1da75e6771001d9
workspaces:
Expand All @@ -127,24 +125,53 @@ spec:
- name: ssh-directory
workspace: ssh-dir

# detect changed operators
# Clone the repository contents from the base branch
- name: clone-repository-base
taskRef:
name: git-clone
kind: Task
runAfter:
- clone-repository
params:
- name: url
value: "$(params.git_repo_url)"
- name: revision
value: "$(params.git_commit_base)"
- name: gitInitImage
value: registry.redhat.io/openshift-pipelines/pipelines-git-init-rhel8@sha256:bc551c776fb3d0fcc6cfd6d8dc9f0030de012cb9516fac42b1da75e6771001d9
workspaces:
- name: output
workspace: repository
subPath: base
- name: ssh-directory
workspace: ssh-dir

- name: detect-changes
taskRef:
name: parse-repo-changes
kind: Task
runAfter:
- clone-repository
- clone-repository-base
params:
- name: pipeline_image
value: $(params.pipeline_image)
value: "$(params.pipeline_image)"
- name: head_commit
value: $(params.git_commit)
value: "$(params.git_commit)"
- name: base_commit
value: $(params.git_commit_base)
value: "$(params.git_commit_base)"
- name: request_url
value: "$(params.git_pr_url)"
- name: github_token_secret_name
value: "$(params.github_token_secret_name)"
- name: github_token_secret_key
value: "$(params.github_token_secret_key)"
workspaces:
- name: repo
- name: pr
workspace: repository
subPath: src
- name: base
workspace: repository
subPath: base

- name: read-config
taskRef:
Expand Down

0 comments on commit d20b0a0

Please sign in to comment.