Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(RELEASE-1283): file-updates updates #225

Open
wants to merge 2 commits into
base: stable
Choose a base branch
from
Open
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
6 changes: 6 additions & 0 deletions internal-services/catalog/file-updates-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ spec:
- name: application
type: string
description: Application being released
- name: file_updates_secret
type: string
default: "file-updates-secret"
description: The credentials used to update the git repo
tasks:
- name: task-process-file-updates
taskRef:
Expand All @@ -44,6 +48,8 @@ spec:
value: $(params.paths)
- name: application
value: $(params.application)
- name: file_updates_secret
value: $(params.file_updates_secret)
results:
- name: jsonBuildInfo
value: $(tasks.task-process-file-updates.results.fileUpdatesInfo)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ spec:
- name: application
type: string
description: Application being released
- name: file_updates_secret
type: string
default: "file-updates-secret"
description: The credentials used to update the git repo
results:
- name: fileUpdatesInfo
description: fileUpdates detailed information
Expand All @@ -41,22 +45,22 @@ spec:
- name: GITLAB_HOST
valueFrom:
secretKeyRef:
name: file-updates-secret
name: $(params.file_updates_secret)
key: gitlab_host
- name: ACCESS_TOKEN
valueFrom:
secretKeyRef:
name: file-updates-secret
name: $(params.file_updates_secret)
key: gitlab_access_token
- name: GIT_AUTHOR_NAME
valueFrom:
secretKeyRef:
name: file-updates-secret
name: $(params.file_updates_secret)
key: git_author_name
- name: GIT_AUTHOR_EMAIL
valueFrom:
secretKeyRef:
name: file-updates-secret
name: $(params.file_updates_secret)
key: git_author_email
script: |
#!/usr/bin/env sh
Expand Down Expand Up @@ -182,7 +186,7 @@ spec:
git_commit_and_push --branch $WORKING_BRANCH --message "fileUpdates changes"

echo "Creating Pull Request..."
GITLAB_MR_MSG="[RHTAP release] $(params.application): fileUpdates changes ${WORKING_BRANCH}"
GITLAB_MR_MSG="[Konflux release] $(params.application): fileUpdates changes ${WORKING_BRANCH}"
gitlab_create_mr --head $WORKING_BRANCH --target-branch $REVISION --title "${GITLAB_MR_MSG}" \
--description "${GITLAB_MR_MSG}" --upstream-repo "${UPSTREAM_REPO}" | jq '. | tostring' \
|tee $(results.fileUpdatesInfo.path)
Expand Down