We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a93800e + fe80830 commit b83e1b1Copy full SHA for b83e1b1
2 files changed
.github/workflows/release.yml
@@ -9,6 +9,8 @@ jobs:
9
environment: deployment
10
runs-on: ubuntu-latest
11
steps:
12
+ - name: Check out the repo
13
+ uses: actions/checkout@v2
14
- name: Docker Login
15
uses: docker/login-action@v1
16
with:
Dockerfile
@@ -1,5 +1,16 @@
1
+FROM golang:1.17-alpine as builder
2
+WORKDIR /go/src/github.com/target/pull-request-code-coverage
3
+COPY . .
4
+ENV GO111MODULE=on
5
+ENV CGO_ENABLED=0
6
+ENV GOOS=linux
7
+
8
+RUN apk add --no-cache git && \
+ go build -a -installsuffix cgo -o bin/plugin
FROM alpine:latest
-COPY bin/plugin /
+COPY --from=builder /go/src/github.com/target/pull-request-code-coverage/bin/plugin /
RUN apk --no-cache add ca-certificates git bash openssh-client
WORKDIR /root/
COPY scripts/start.sh /
0 commit comments