Move version into docker build

This commit is contained in:
Jono Hill
2019-07-24 10:36:31 +12:00
parent 3b9f66d8b4
commit 6459c3f598
2 changed files with 5 additions and 4 deletions

View File

@ -21,3 +21,6 @@ RUN mkdir -p ~/.docker/cli-plugins && \
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
# Write version file
RUN printf "$(docker --version | perl -pe 's/^.*\s(\d+\.\d+\.\d+.+),.*$/\1/')_$(docker buildx version | perl -pe 's/^.*v?(\d+\.\d+\.\d+).*$/$1/')" > /version