This repository was archived by the owner on Aug 29, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ LABEL org.opencontainers.image.url="https://github.com/thegeeklab/drone-docker-b
1717LABEL org.opencontainers.image.source="https://github.com/thegeeklab/drone-docker-buildx"
1818LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/drone-docker-buildx"
1919
20+ ARG TARGETOS
21+ ARG TARGETARCH
2022ARG BUILDX_VERSION
2123
2224# renovate: datasource=github-releases depName=docker/buildx
@@ -27,7 +29,8 @@ ENV DOCKER_HOST=unix:///var/run/docker.sock
2729RUN apk --update add --virtual .build-deps curl && \
2830 apk --update add --no-cache git && \
2931 mkdir -p /usr/lib/docker/cli-plugins/ && \
30- curl -SsL -o /usr/lib/docker/cli-plugins/docker-buildx "https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION##v}/buildx-v${BUILDX_VERSION##v}.linux-amd64" && \
32+ curl -SsL -o /usr/lib/docker/cli-plugins/docker-buildx \
33+ "https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION##v}/buildx-v${BUILDX_VERSION##v}.${TARGETOS:-linux}-${TARGETARCH:-amd64}" && \
3134 chmod 755 /usr/lib/docker/cli-plugins/docker-buildx && \
3235 apk del .build-deps && \
3336 rm -rf /var/cache/apk/* && \
You can’t perform that action at this time.
0 commit comments