Skip to content

Commit 3fe5eee

Browse files
code built
1 parent 5c39669 commit 3fe5eee

2 files changed

Lines changed: 14 additions & 10 deletions

File tree

Dockerfile

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
# Get latest CA certs & git
2-
FROM alpine:3.19 as deps
1+
FROM golang:1.21-alpine AS builder
32

43
# hadolint ignore=DL3018
54
RUN apk --no-cache add ca-certificates git
65

6+
WORKDIR /app
7+
COPY go.mod go.sum ./
8+
RUN go mod download
9+
COPY . .
10+
RUN CGO_ENABLED=0 GOOS=linux go build -o /codeowners-validator .
11+
712
FROM scratch
813

914
LABEL org.opencontainers.image.source=https://github.com/step-security/codeowners-validator
1015

11-
COPY ./codeowners-validator /codeowners-validator
12-
13-
COPY --from=deps /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
14-
COPY --from=deps /usr/bin/git /usr/bin/git
15-
COPY --from=deps /usr/bin/xargs /usr/bin/xargs
16-
COPY --from=deps /lib /lib
17-
COPY --from=deps /usr/lib /usr/lib
16+
COPY --from=builder /codeowners-validator /codeowners-validator
17+
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
18+
COPY --from=builder /usr/bin/git /usr/bin/git
19+
COPY --from=builder /usr/bin/xargs /usr/bin/xargs
20+
COPY --from=builder /lib /lib
21+
COPY --from=builder /usr/lib /usr/lib
1822

1923
ENTRYPOINT ["/codeowners-validator"]

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func validateSubscription() {
6666
}
6767
}
6868

69-
upstream := "chuhlomin/render-template"
69+
upstream := "mszostok/codeowners-validator"
7070
action := os.Getenv("GITHUB_ACTION_REPOSITORY")
7171
docsURL := "https://docs.stepsecurity.io/actions/stepsecurity-maintained-actions"
7272

0 commit comments

Comments
 (0)