File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change
1
+ bumper
Original file line number Diff line number Diff line change
1
+ FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.14 as builder
2
+
3
+ WORKDIR /src
4
+ COPY main.go go.mod ./
5
+ RUN go build -o /bin/bumper -mod=mod ./...
6
+
7
+ FROM quay.io/centos/centos:stream8
8
+
9
+ RUN dnf install -y git glibc make
10
+ COPY --from=builder /bin/bumper /usr/bin/bumper
11
+ COPY --from=builder /usr/bin/go /usr/bin/go
12
+ COPY --from=builder /usr/lib/golang /usr/lib/golang
13
+
14
+ ENTRYPOINT ["bumper" ]
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ func (o *options) Validate() error {
105
105
switch fetchMode (o .fetchMode ) {
106
106
case ssh , https :
107
107
default :
108
- return fmt .Errorf ("--mode must be one of %v" , []fetchMode {https , ssh })
108
+ return fmt .Errorf ("--fetch- mode must be one of %v" , []fetchMode {https , ssh })
109
109
}
110
110
111
111
if _ , err := logrus .ParseLevel (o .logLevel ); err != nil {
You can’t perform that action at this time.
0 commit comments