-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathshiftstack-rebasebot-main.yaml
More file actions
76 lines (71 loc) · 2.12 KB
/
shiftstack-rebasebot-main.yaml
File metadata and controls
76 lines (71 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
build_root:
project_image:
dockerfile_literal: |-
FROM registry.access.redhat.com/ubi9/python-312
USER root
ENV GO_VERSION=1.24.3
ENV PATH="/usr/local/go/bin:$PATH"
RUN dnf install -y tar gzip git make && \
curl -Ls https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz | \
tar -C /usr/local -zxvf - go/ && \
python -m pip install uv
# Prow expects to be able to check out a repo under /go
RUN mkdir -p /go && \
chown 1001:1001 /go && \
chmod 755 /go
WORKDIR /go
USER 1001:1001
images:
items:
- dockerfile_path: Containerfile
to: rebasebot
resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
test_binary_build_commands: make deps
tests:
- as: unit
commands: make unittests
container:
from: test-bin
- as: lint
commands: make lint
container:
from: test-bin
- as: cloud-provider-openstack-main
cron: 0 10 * * Mon,Thu
steps:
test:
- as: cloud-provider-openstack-main
commands: |
rebasebot --source https://github.com/kubernetes/cloud-provider-openstack:release-1.35 \
--dest openshift/cloud-provider-openstack:main \
--rebase shiftstack/cloud-provider-openstack:rebase-bot-main \
--update-go-modules \
--git-username shiftstack-rebasebot \
--git-email [email protected] \
--github-app-key /secrets/merge-bot/github_private_key \
--github-cloner-key /secrets/merge-bot/github_cloner_private_key \
--slack-webhook /secrets/slack-hooks/forum-shiftstack
credentials:
- mount_path: /secrets/merge-bot
name: shiftstack-merge-bot
namespace: test-credentials
- mount_path: /secrets/slack-hooks
name: shiftstack-slack-hooks
namespace: test-credentials
from: rebasebot
resources:
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
zz_generated_metadata:
branch: main
org: shiftstack
repo: rebasebot