mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-12-25 16:32:47 +00:00
rubygems: also download versions file
Some checks failed
docker-images / multi (., tunasync-scripts) (push) Has been cancelled
docker-images / multi (bandersnatch) (push) Has been cancelled
docker-images / multi (dockerfiles/rubygems, rubygems-mirror) (push) Has been cancelled
docker-images / multi (freighter) (push) Has been cancelled
docker-images / multi (ftpsync) (push) Has been cancelled
docker-images / multi (nix-channels) (push) Has been cancelled
docker-images / multi (pub-mirror) (push) Has been cancelled
docker-images / multi (rustup-mirror) (push) Has been cancelled
Some checks failed
docker-images / multi (., tunasync-scripts) (push) Has been cancelled
docker-images / multi (bandersnatch) (push) Has been cancelled
docker-images / multi (dockerfiles/rubygems, rubygems-mirror) (push) Has been cancelled
docker-images / multi (freighter) (push) Has been cancelled
docker-images / multi (ftpsync) (push) Has been cancelled
docker-images / multi (nix-channels) (push) Has been cancelled
docker-images / multi (pub-mirror) (push) Has been cancelled
docker-images / multi (rustup-mirror) (push) Has been cancelled
This commit is contained in:
parent
332cb42cb0
commit
3bd346bbf6
|
|
@ -1,6 +1,6 @@
|
|||
FROM ruby:2.7-alpine
|
||||
RUN gem install rubygems-mirror
|
||||
RUN apk add bash
|
||||
RUN apk add bash curl
|
||||
# the command timeout provided by old verison of busybox was incompatible with that from coreutils and is compatible now.
|
||||
ENV BUSYBOX=0
|
||||
ENV HOME=/tmp
|
||||
|
|
|
|||
|
|
@ -40,4 +40,10 @@ if [[ $ret == 124 ]]; then
|
|||
echo 'Sync timeout (/_\\)'
|
||||
fi
|
||||
|
||||
if [[ $ret == 0 ]]; then
|
||||
curl -fsSL https://rubygems.org/versions > "$TUNASYNC_WORKING_DIR/.versions.new" && \
|
||||
mv "$TUNASYNC_WORKING_DIR/.versions.new" "$TUNASYNC_WORKING_DIR/versions"
|
||||
ret=$?
|
||||
fi
|
||||
|
||||
exit $ret
|
||||
|
|
|
|||
Loading…
Reference in New Issue