-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
40 lines (29 loc) · 997 Bytes
/
Dockerfile
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
FROM ubuntu:latest
RUN apt-get update && apt-get install -y curl
RUN curl -O https://dl.google.com/go/go1.22.2.linux-amd64.tar.gz
RUN tar -xvf go1.22.2.linux-amd64.tar.gz
RUN mv -f go /usr/local
ENV PATH="/usr/local/go/bin:${PATH}"
ENV GOPATH="/go"
ENV PATH="/go/bin:${PATH}"
RUN go version
LABEL "com.github.actions.name"="gh-retest"
LABEL "com.github.actions.description"="gh-retest"
LABEL "com.github.actions.icon"="home"
LABEL "com.github.actions.color"="red"
LABEL "repository"="https://github.com/yuluo-yx/gh-retest"
LABEL "homepage"="https://github.com/yuluo-yx/gh-retest"
LABEL "maintainer"="yuluo <[email protected]>"
LABEL "Name"="Github Pull Request Retest"
WORKDIR /app
COPY retest/ retest/
COPY go.mod go.mod
COPY go.sum go.sum
COPY main.go main.go
COPY LICENSE LICENSE
COPY README.md README.md
COPY action.yml action.yml
RUN go build -o /usr/local/bin/retest main.go && \
chmod +x /usr/local/bin/retest && \
ls -l /usr/local/bin/retest
ENTRYPOINT ["retest"]