Create check_and_download.sh
This commit is contained in:
parent
6a33b40dc0
commit
8bccbc8d51
17
image-downloader/check_and_download.sh
Normal file
17
image-downloader/check_and_download.sh
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
|
||||||
|
VERSION=$(curl -s https://omahaproxy.appspot.com/all.json | jq '.[] | select(.os | contains("win64")) | .versions[] | select(.channel | contains("stable")) | .current_version' | xargs)
|
||||||
|
echo Check for $VERSION
|
||||||
|
|
||||||
|
docker -H unix:///home/$USER/gh-runner-ci/var/run/docker.sock pull uazo/build-deps:$VERSION
|
||||||
|
docker -H unix:///home/$USER/gh-runner-ci/var/run/docker.sock pull uazo/chromium:$VERSION
|
||||||
|
|
||||||
|
docker -H unix:///home/$USER/gh-runner/var/run/docker.sock pull uazo/build-deps:$VERSION
|
||||||
|
docker -H unix:///home/$USER/gh-runner/var/run/docker.sock pull uazo/chromium:$VERSION
|
||||||
|
|
||||||
|
sleep 1h
|
||||||
|
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user