github-rebase-bot icon indicating copy to clipboard operation
github-rebase-bot copied to clipboard

Support rebase merge

Open kilianc opened this issue 6 years ago • 2 comments

I tried to build the repo locally but I am getting a lot of errors, I am happy to help if I get some help.

kilianc avatar Nov 23 '19 02:11 kilianc

Not sure when my PR will arrive but just for now, I am going to leave this here!

FROM golang:1.8.3-alpine3.6 as builder
RUN apk --no-cache --update add git

WORKDIR /go/src/github.com/nicolai86/github-rebase-bot
COPY [".", "./"]

RUN go get -u github.com/golang/dep/cmd/dep
RUN go get
RUN go build .

FROM golang:1.8.3-alpine3.6 as server
RUN apk --no-cache --update add git
RUN go get github.com/nicolai86/github-rebase-bot

FROM alpine:3.6

RUN apk --no-cache --update add ca-certificates git curl && update-ca-certificates

ENV GITHUB_TOKEN="" \
    GITHUB_OWNER="" \
    GITHUB_REPOS="" \
    GITHUB_MERGE_LABEL="LGTM" \
    PUBLIC_DNS=""

COPY --from=builder /go/bin/github-rebase-bot /
ADD startup.sh /

ENTRYPOINT ["/startup.sh"]

kilianc avatar Nov 23 '19 02:11 kilianc

thanks for the example - I think moving forward the rebase bot should be updated from Godep to use gomodules - it would make this much more maintainable moving forward.

nicolai86 avatar Nov 25 '19 20:11 nicolai86