always use latest, tag appopriately

This commit is contained in:
Jono Hill
2019-07-23 21:06:01 +12:00
parent 079537de49
commit cf046268cb
2 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,5 @@
FROM debian
ENV BUILDX_VERSION=v0.2.2
# Install Docker and qemu
# TODO Use docker stable once it properly supports buildx
RUN apt-get update && apt-get install -y \
@ -19,6 +17,7 @@ RUN apt-get update && apt-get install -y \
# Install buildx plugin
RUN mkdir -p ~/.docker/cli-plugins && \
curl -L -o ~/.docker/cli-plugins/docker-buildx \
https://github.com/docker/buildx/releases/download/${BUILDX_VERSION}/buildx-${BUILDX_VERSION}.linux-amd64 && \
curl -s https://api.github.com/repos/docker/buildx/releases/latest | \
grep "browser_download_url.*linux-arm64" | cut -d : -f 2,3 | tr -d \" | \
xargs curl -L -o ~/.docker/cli-plugins/docker-buildx && \
chmod a+x ~/.docker/cli-plugins/docker-buildx