File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ ARG TARGETPLATFORM
3
3
ARG TARGETARCH
4
4
ARG TARGETVARIANT
5
5
ARG BUILDPLATFORM
6
+ ARG BUILDARCH
6
7
RUN apk add bash git
7
8
8
9
ENV GOOS linux
@@ -17,17 +18,18 @@ RUN GOARM=${GOARMV#v} go install github.com/awslabs/amazon-ecr-credential-helper
17
18
# Get ACR docker env credential helper
18
19
RUN GOARM=${GOARMV#v} go install github.com/chrismellard/docker-credential-acr-env@latest
19
20
21
+ RUN if [ ! "${BUILDARCH}" = "${TARGETARCH}" ]; then mv /go/bin/linux_${TARGETARCH}/* /go/bin; fi
22
+
20
23
RUN mkdir /manifest-tool
21
24
WORKDIR /manifest-tool
22
25
COPY . /manifest-tool
23
26
RUN /manifest-tool/hack/makestatic.sh $TARGETARCH ${TARGETVARIANT#v}
24
27
25
28
FROM --platform=$TARGETPLATFORM alpine:3.17.0
26
- ARG TARGETARCH
27
29
COPY --from=bld /manifest-tool/manifest-tool /manifest-tool
28
30
COPY --from=bld /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
29
- COPY --from=bld --chown=0:0 /go/bin/linux_${TARGETARCH}/ docker-credential-gcr /usr/bin/docker-credential-gcloud
30
- COPY --from=bld --chown=0:0 /go/bin/linux_${TARGETARCH}/ docker-credential-ecr-login /usr/bin/docker-credential-ecr-login
31
- COPY --from=bld --chown=0:0 /go/bin/linux_${TARGETARCH}/ docker-credential-acr-env /usr/bin/docker-credential-acr-env
31
+ COPY --from=bld --chown=0:0 /go/bin/docker-credential-gcr /usr/bin/docker-credential-gcloud
32
+ COPY --from=bld --chown=0:0 /go/bin/docker-credential-ecr-login /usr/bin/docker-credential-ecr-login
33
+ COPY --from=bld --chown=0:0 /go/bin/docker-credential-acr-env /usr/bin/docker-credential-acr-env
32
34
ENV PATH="${PATH}:/"
33
35
ENTRYPOINT [ "/manifest-tool" ]
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import (
14
14
var gitCommit = ""
15
15
16
16
const (
17
- version = "2.1.1 "
17
+ version = "2.1.2 "
18
18
usage = "registry client to inspect and push multi-platform OCI & Docker v2 images"
19
19
)
20
20
You can’t perform that action at this time.
0 commit comments