Verified Commit ca6e2dbd authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Proper way to get effective filename

parent bfac1148
Pipeline #2469 failed with stages
in 3 minutes and 59 seconds
......@@ -11,7 +11,7 @@
FROM archlinux:latest AS verify
COPY TEMPLATE_ROOTFS_FILE /
SHELL ["/bin/bash", "-c"]
RUN ROOTFS="$(curl --continue-at - --remote-name --write-out "%{filename_effective}" TEMPLATE_ROOTFS_URL)" && \
RUN ROOTFS="$(curl -OJL -w "%{filename_effective}" TEMPLATE_ROOTFS_URL)" && \
sha256sum -c <<< "TEMPLATE_ROOTFS_HASH" && \
mkdir /rootfs && \
tar -C /rootfs --extract --auto-compress --file "${ROOTFS}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment