Skip to content

Commit 5adfdd2

Browse files
author
Potherca
committed
Merge branch 'feature/add-reportinator' into 'main'
Add reportinator See merge request pipeline-components/shellcheck!61
2 parents e6d509b + 364e713 commit 5adfdd2

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
FROM golang:1.24-alpine3.22 AS go-build
2+
3+
WORKDIR /go/src/
4+
# hadolint ignore=DL3018
5+
RUN apk --no-cache add git upx \
6+
&& go install 'gitlab.com/pipeline-components/org/gitlab-reportinator/cmd/gitlab-reportinator@v0.6.0' \
7+
&& upx -9 /go/bin/gitlab-reportinator
8+
19
FROM alpine:3.22.1 AS build
210

311
# hadolint ignore=DL3018
@@ -20,18 +28,19 @@ RUN \
2028
RUN cp "$(readlink -f /root/.local/bin/shellcheck)" /root/.local/bin/shellcheck && \
2129
upx -9 /root/.local/bin/shellcheck
2230

23-
FROM pipelinecomponents/base-entrypoint:0.5.0 as entrypoint
31+
FROM pipelinecomponents/base-entrypoint:0.5.0 AS entrypoint
2432

2533
FROM alpine:3.22.1
2634
COPY --from=entrypoint /entrypoint.sh /entrypoint.sh
2735
ENTRYPOINT ["/entrypoint.sh"]
28-
ENV DEFAULTCMD shellcheck
36+
ENV DEFAULTCMD=shellcheck
2937

3038
COPY app /app/
3139

3240
# hadolint ignore=DL3018
3341
RUN apk --no-cache add libffi libgmpxx parallel bash
3442
COPY --from=build /root/.local/bin/shellcheck /usr/local/bin/shellcheck
43+
COPY --from=go-build /go/bin/gitlab-reportinator /usr/local/bin/convert_report
3544

3645
WORKDIR /code/
3746
# Build arguments

0 commit comments

Comments
 (0)