Skip to content

Commit b83e1b1

Browse files
authored
Merge pull request #6 from target/release-workfl
chnaging dockerfile
2 parents a93800e + fe80830 commit b83e1b1

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
environment: deployment
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: Check out the repo
13+
uses: actions/checkout@v2
1214
- name: Docker Login
1315
uses: docker/login-action@v1
1416
with:

Dockerfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 && \
9+
go build -a -installsuffix cgo -o bin/plugin
10+
11+
112
FROM alpine:latest
2-
COPY bin/plugin /
13+
COPY --from=builder /go/src/github.com/target/pull-request-code-coverage/bin/plugin /
314
RUN apk --no-cache add ca-certificates git bash openssh-client
415
WORKDIR /root/
516
COPY scripts/start.sh /

0 commit comments

Comments
 (0)