Skip to content

Commit fabc7de

Browse files
committed
Adapt target arch to kopia naming
- amd64 -> x64 - arm64 fits
1 parent 52bcce4 commit fabc7de

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ RUN curl -o /usr/local/bin/regctl --fail -sSL https://github.com/regclient/regcl
1313

1414
#renovate: datasource=github-releases depName=kopia/kopia
1515
ARG KOPIA_VERSION=0.22.3
16-
RUN curl -o /tmp/kopia.tar.gz --fail -sSL https://github.com/kopia/kopia/releases/download/v${KOPIA_VERSION}/kopia-${KOPIA_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz && \
16+
RUN KOPIA_ARCH=$([ "${TARGETARCH}" = "amd64" ] && echo "x64" || echo "${TARGETARCH}") && \
17+
curl -o /tmp/kopia.tar.gz --fail -sSL https://github.com/kopia/kopia/releases/download/v${KOPIA_VERSION}/kopia-${KOPIA_VERSION}-${TARGETOS}-${KOPIA_ARCH}.tar.gz && \
1718
tar -xzf /tmp/kopia.tar.gz -C /tmp && \
18-
mv /tmp/kopia-${KOPIA_VERSION}-${TARGETOS}-${TARGETARCH}/kopia /usr/local/bin/kopia && \
19+
mv /tmp/kopia-${KOPIA_VERSION}-${TARGETOS}-${KOPIA_ARCH}/kopia /usr/local/bin/kopia && \
1920
chmod a+x /usr/local/bin/kopia && \
2021
rm -rf /tmp/kopia*
2122

0 commit comments

Comments
 (0)