Skip to content

Commit

Permalink
Autobumper upgrade (nephio-project#262)
Browse files Browse the repository at this point in the history
* Autobumper upgrade

* Adding external config for autobumper
  • Loading branch information
radoslawc authored and dkosteck committed Aug 15, 2024
1 parent c596d8d commit f65a889
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
10 changes: 5 additions & 5 deletions images/generic-autobumper/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM golang:1.18 as builder
RUN git clone --depth 1 https://github.com/kubernetes/test-infra.git /opt/test-infra
FROM golang:1.22 as builder
RUN git clone --depth 1 https://github.com/kubernetes-sigs/prow.git /opt/prow

WORKDIR /opt/test-infra
RUN CGO_ENABLED=0 go build -o /tmp/ ./prow/cmd/generic-autobumper/...
WORKDIR /opt/prow
RUN CGO_ENABLED=0 go build -o /tmp/ ./cmd/generic-autobumper/...

FROM gcr.io/distroless/static-debian11@sha256:6706c73aae2afaa8201d63cc3dda48753c09bcd6c300762251065c0f7e602b25
FROM gcr.io/distroless/static-debian12@sha256:262ae336f8e9291f8edc9a71a61d5d568466edc1ea4818752d4af3d230a7f9ef

COPY --from=builder /tmp/generic-autobumper /
CMD ["/generic-autobumper"]
14 changes: 14 additions & 0 deletions images/generic-autobumper/autobumper_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
gitHubToken: "/etc/github/token"
skipPullRequest: false
gitHubOrg: "nephio-project"
gitHubRepo: "test-infra"
remoteName: "test-infra"
includedConfigPaths:
- "prow/config"
- "prow/cluster"
targetVersion: "latest"
prefixes:
- name: "k8s-prow images"
prefix: "gcr.io/k8s-prow/"
repo: "https://github.com/nephio-project/test-infra"
summarise: false

0 comments on commit f65a889

Please sign in to comment.