Skip to content
Open
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
46 changes: 46 additions & 0 deletions ci-operator/jobs/infra-periodics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1612,6 +1612,52 @@ periodics:
- name: token
secret:
secretName: github-credentials-openshift-merge-robot
- agent: kubernetes
cluster: app.ci
cron: 0 6 * * *
decorate: true
labels:
ci.openshift.io/role: infra
name: periodic-openshift-mcp-server-fast-forward
spec:
containers:
- args:
- -c
- |
set -o errexit
set -o nounset
set -o pipefail
dnf install -y git
export HOME=/tmp
cd /tmp
# Avoid putting credentials in argv/env/logs
git_cmd() {
git -c credential.helper= -c credential.helper='!f() { echo username=openshift-merge-robot; printf password=; cat /etc/github/oauth; echo; }; f' "$@"
}
src=main
dst=release-0.5
repo_url=https://github.com/openshift/openshift-mcp-server.git
echo "Fast-forwarding ${src} -> ${dst} for openshift/openshift-mcp-server"
git_cmd clone -b "${dst}" "${repo_url}" repo
cd repo
git_cmd pull --ff-only origin "${src}"
git_cmd push
command:
- /bin/bash
image: quay-proxy.ci.openshift.org/openshift/ci:ocp_cli-jq_latest
Comment thread
2uasimojo marked this conversation as resolved.
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 100m
volumeMounts:
- mountPath: /etc/github
name: token
readOnly: true
volumes:
- name: token
secret:
secretName: github-credentials-openshift-merge-robot
- agent: kubernetes
annotations:
ci.openshift.io/sop: https://github.com/openshift/release/blob/main/docs/dptp-triage-sop/infrastructure-jobs.md#periodic-openshift-release-private-org-sync
Expand Down