diff --git a/github/ci/prow-deploy/files/jobs/kubevirt/kubevirt/kubevirt-periodics.yaml b/github/ci/prow-deploy/files/jobs/kubevirt/kubevirt/kubevirt-periodics.yaml index ad547246bc..dbd11ac881 100644 --- a/github/ci/prow-deploy/files/jobs/kubevirt/kubevirt/kubevirt-periodics.yaml +++ b/github/ci/prow-deploy/files/jobs/kubevirt/kubevirt/kubevirt-periodics.yaml @@ -1591,7 +1591,7 @@ periodics: - -ce - | make bump-images - git-pr.sh -c "cd ../project-infra && bazelisk run //robots/cmd/uploader:uploader -- -workspace ${PWD}/../kubevirt/WORKSPACE -dry-run=false" -p ${PWD} -s 'Automated run of make bump-images and //robots/cmd/uploader:uploader' -b bump-images -r kubevirt -L release-note-none -T main + git-pr.sh -c "cd ../project-infra && go run ./robots/cmd/uploader:uploader -workspace ${PWD}/../kubevirt/WORKSPACE -dry-run=false" -p ${PWD} -s 'Automated run of make bump-images and ./robots/cmd/uploader:uploader' -b bump-images -r kubevirt -L release-note-none -T main command: - /bin/sh image: quay.io/kubevirtci/pr-creator:v20240913-6773146 @@ -1700,16 +1700,7 @@ periodics: preset-github-credentials: "true" spec: containers: - - image: quay.io/kubevirtci/bootstrap:v20241213-57bd934 - env: - - name: GIT_AUTHOR_NAME - value: kubevirt-bot - - name: GIT_AUTHOR_EMAIL - value: kubevirtbot@redhat.com - - name: GIT_REPO_URL - value: https://kubevirt-bot@github.com/kubevirt/sig-release.git - command: [ "/bin/sh", "-ce" ] - args: + - args: - | set -x project_infra_dir=$(cd ../project-infra && pwd) @@ -1723,7 +1714,7 @@ periodics: ) sig_release_dir=$(cd ../sig-release && pwd) cd ${project_infra_dir} - bazelisk run //releng/feature-announce -- \ + go run ./releng/feature-announce \ --log-level=5 \ --output-file=${sig_release_dir}/upcoming-changes.md \ --org kubevirt \ @@ -1736,8 +1727,20 @@ periodics: echo "Nothing changed" >&2 exit 0 fi - git commit --signoff -m "robot //releng/feature-announce: update list of notable changes for next KubeVirt release" + git commit --signoff -m "robot ./releng/feature-announce: update list of notable changes for next KubeVirt release" git push ${GIT_REPO_URL} HEAD:main + command: + - /usr/local/bin/runner.sh + - /bin/bash + - -ce + env: + - name: GIT_AUTHOR_NAME + value: kubevirt-bot + - name: GIT_AUTHOR_EMAIL + value: kubevirtbot@redhat.com + - name: GIT_REPO_URL + value: https://kubevirt-bot@github.com/kubevirt/sig-release.git + image: quay.io/kubevirtci/golang:v20241213-57bd934 resources: requests: memory: "200Mi" diff --git a/github/ci/prow-deploy/files/jobs/kubevirt/kubevirt/kubevirt-postsubmits.yaml b/github/ci/prow-deploy/files/jobs/kubevirt/kubevirt/kubevirt-postsubmits.yaml index 0fa541e11b..79d1aeccc1 100644 --- a/github/ci/prow-deploy/files/jobs/kubevirt/kubevirt/kubevirt-postsubmits.yaml +++ b/github/ci/prow-deploy/files/jobs/kubevirt/kubevirt/kubevirt-postsubmits.yaml @@ -267,6 +267,7 @@ postsubmits: - org: kubevirt repo: project-infra base_ref: main + workdir: true - org: kubevirt repo: sig-release base_ref: main @@ -274,14 +275,26 @@ postsubmits: preset-github-credentials: "true" spec: containers: - - image: quay.io/kubevirtci/pr-creator:v20240913-6773146 - env: - command: [ "/bin/sh", "-ce" ] - args: + - args: - | project_infra_dir=$(cd ../project-infra && pwd) sig_release_dir=$(cd ../sig-release && pwd) - git-pr.sh -c "cd ../project-infra && bazelisk run //robots/cmd/kubevirt -- get support-matrix --output-file=${sig_release_dir}/releases/k8s-support-matrix.md --overwrite-output-file --job-config-path=${project_infra_dir}/github/ci/prow-deploy/files/jobs/kubevirt/kubevirt" -p ${sig_release_dir} -s 'Automated run of //robots/cmd/kubevirt get support-matrix' -r sig-release -b update-support-matrix -T main + go run ./robots/cmd/kubevirt get support-matrix \ + --output-file=/tmp/k8s-support-matrix.md \ + --job-config-path=${project_infra_dir}/github/ci/prow-deploy/files/jobs/kubevirt/kubevirt \ + --overwrite-output-file + git-pr.sh \ + -c "mv /tmp/k8s-support-matrix.md ${sig_release_dir}/releases/k8s-support-matrix.md" \ + -p ${sig_release_dir} \ + -s 'Automated run of //robots/cmd/kubevirt get support-matrix' \ + -r sig-release \ + -b update-support-matrix \ + -T main + command: + - /usr/local/bin/runner.sh + - /bin/bash + - -ce + image: quay.io/kubevirtci/pr-creator:v20240913-6773146 resources: requests: memory: "200Mi" diff --git a/github/ci/prow-deploy/files/jobs/kubevirt/project-infra/project-infra-periodics.yaml b/github/ci/prow-deploy/files/jobs/kubevirt/project-infra/project-infra-periodics.yaml index 05298537bc..8769ee9bfd 100644 --- a/github/ci/prow-deploy/files/jobs/kubevirt/project-infra/project-infra-periodics.yaml +++ b/github/ci/prow-deploy/files/jobs/kubevirt/project-infra/project-infra-periodics.yaml @@ -274,17 +274,14 @@ periodics: securityContext: runAsUser: 0 containers: - - image: quay.io/kubevirt/builder:2212180911-8818abcfa + - image: quay.io/kubevirtci/pr-creator:v20240913-6773146 command: ["/bin/sh"] args: - - "-c" - - bazel_dir=$(mktemp -d) && - curl --fail -L https://github.com/bazelbuild/bazelisk/releases/download/v1.7.4/bazelisk-linux-amd64 --output ${bazel_dir}/bazelisk && - chmod a+x ${bazel_dir}/bazelisk && - export PATH=${PATH}:${bazel_dir} && - hack/git-pr.sh -c "bazelisk run //robots/cmd/uploader:uploader -- -workspace ${PWD}/../kubevirt/WORKSPACE -dry-run=false" -p ../kubevirt -r kubevirt -L lgtm,approved,release-note-none -T main && - hack/git-pr.sh -c "bazelisk run //robots/cmd/uploader:uploader -- -workspace ${PWD}/../containerized-data-importer/WORKSPACE -dry-run=false" -p ../containerized-data-importer -r containerized-data-importer -T main -L lgtm,approved,release-note-none - hack/git-pr.sh -c "bazelisk run //robots/cmd/uploader:uploader -- -workspace ${PWD}/WORKSPACE -dry-run=false" -p ${PWD} -r project-infra -T main -L lgtm,approved,release-note-none + - -ce + - | + git-pr.sh -c "go run ./robots/cmd/uploader:uploader -workspace ${PWD}/../kubevirt/WORKSPACE -dry-run=false" -p ../kubevirt -r kubevirt -L lgtm,approved,release-note-none -T main + git-pr.sh -c "go run ./robots/cmd/uploader:uploader -workspace ${PWD}/../containerized-data-importer/WORKSPACE -dry-run=false" -p ../containerized-data-importer -r containerized-data-importer -T main -L lgtm,approved,release-note-none + git-pr.sh -c "go run ./robots/cmd/uploader:uploader -workspace ${PWD}/WORKSPACE -dry-run=false" -p ${PWD} -r project-infra -T main -L lgtm,approved,release-note-none resources: requests: memory: "200Mi"