Skip to content

Commit ace00a2

Browse files
author
Scott Schulthess
committed
revert changes to dockerfile - update github app credential helper
1 parent 4834f59 commit ace00a2

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

Dockerfile

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,36 @@
1-
FROM public.ecr.aws/docker/library/golang:1.22 as builder
1+
ARG golang
2+
ARG alpine
3+
4+
5+
6+
FROM ${golang} AS builder
7+
28
ENV DEBIAN_FRONTEND=noninteractive
39
RUN apt-get -y -qq update \
410
&& apt-get -y -qq install "make"
511

612
ADD . /go/src/github.com/telia-oss/github-pr-resource
713
WORKDIR /go/src/github.com/telia-oss/github-pr-resource
814

9-
RUN go version && make all
15+
RUN go version \
16+
&& make all
17+
1018

11-
FROM public.ecr.aws/docker/library/alpine:3.21.3 AS resource
19+
20+
FROM ${alpine} AS resource
1221
RUN apk add --update --no-cache \
1322
git \
1423
git-lfs \
15-
curl \
1624
openssh \
1725
git-crypt
1826
COPY scripts/askpass.sh /usr/local/bin/askpass.sh
19-
ENV GITHUB_APP_CRED_HELPER_VERSION="v0.3.2"
27+
COPY --from=builder /go/src/github.com/telia-oss/github-pr-resource/build /opt/resource
28+
RUN chmod +x /opt/resource/*
29+
ENV GITHUB_APP_CRED_HELPER_VERSION="v0.3.3"
2030
ENV BIN_PATH_TARGET=/usr/local/bin
2131
RUN curl -L https://github.com/bdellegrazie/git-credential-github-app/releases/download/${GITHUB_APP_CRED_HELPER_VERSION}/git-credential-github-app_${GITHUB_APP_CRED_HELPER_VERSION}_Linux_x86_64.tar.gz | tar zxv -C ${BIN_PATH_TARGET}
2232
COPY --from=builder /go/src/github.com/telia-oss/github-pr-resource/build /opt/resource
23-
RUN chmod +x /opt/resource/*
33+
2434

2535
FROM resource
2636
LABEL MAINTAINER=cloudfoundry-community

0 commit comments

Comments
 (0)