Skip to content

Commit

Permalink
fix: use new archive format of manifest-tool
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Mar 7, 2022
1 parent b86c819 commit d6f6ccf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ ENV MANIFEST_VERSION=2.0.0

ARG TARGETARCH

RUN apk add -U curl && \
RUN apk add --no-cache curl && \
curl -sSLo- https://github.com/estesp/manifest-tool/releases/download/v${MANIFEST_VERSION}/binaries-manifest-tool-${MANIFEST_VERSION}.tar.gz | tar xvzf - -C /tmp && \
case "${TARGETARCH}" in \
'amd64') \
curl -sSLo /tmp/manifest-tool https://github.com/estesp/manifest-tool/releases/download/v${MANIFEST_VERSION}/manifest-tool-linux-amd64; \
cp /tmp/manifest-tool-linux-amd64 /tmp/manifest-tool; \
;; \
'arm64') \
curl -sSLo /tmp/manifest-tool https://github.com/estesp/manifest-tool/releases/download/v${MANIFEST_VERSION}/manifest-tool-linux-arm64; \
cp /tmp/manifest-tool-linux-arm64 /tmp/manifest-tool; \
;; \
'arm') \
curl -sSLo /tmp/manifest-tool https://github.com/estesp/manifest-tool/releases/download/v${MANIFEST_VERSION}/manifest-tool-linux-armv6; \
cp /tmp/manifest-tool-linux-armv6 /tmp/manifest-tool; \
;; \
*) echo >&2 "error: unsupported architecture '${TARGETARCH}'"; exit 1 ;; \
esac && \
Expand Down

0 comments on commit d6f6ccf

Please sign in to comment.