From 227ce5079d358200e8199291367f2bc8901749cb Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Mon, 13 Jan 2025 15:58:32 +0800 Subject: [PATCH] Bump crproxy --- .github/workflows/manual-deep-sync.yml | 2 +- .github/workflows/manual-sync.yml | 2 +- .github/workflows/sync-image.yml | 2 +- .github/workflows/sync.yml | 11 ++-- mirror-deep.txt | 86 ++++++++++++++++++++++++++ 5 files changed, 96 insertions(+), 7 deletions(-) create mode 100644 mirror-deep.txt diff --git a/.github/workflows/manual-deep-sync.yml b/.github/workflows/manual-deep-sync.yml index ad77c85..f715d81 100644 --- a/.github/workflows/manual-deep-sync.yml +++ b/.github/workflows/manual-deep-sync.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Set up crproxy run: | - wget https://github.com/DaoCloud/crproxy/releases/download/v0.13.0-alpha.108/crproxy_linux_amd64 -O /usr/local/bin/crproxy && chmod +x /usr/local/bin/crproxy + wget https://github.com/DaoCloud/crproxy/releases/download/v0.13.0-alpha.109/crproxy_linux_amd64 -O /usr/local/bin/crproxy && chmod +x /usr/local/bin/crproxy - name: Sync Images to OSS&OBS run: | diff --git a/.github/workflows/manual-sync.yml b/.github/workflows/manual-sync.yml index c344491..eec99b2 100644 --- a/.github/workflows/manual-sync.yml +++ b/.github/workflows/manual-sync.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Set up crproxy run: | - wget https://github.com/DaoCloud/crproxy/releases/download/v0.13.0-alpha.108/crproxy_linux_amd64 -O /usr/local/bin/crproxy && chmod +x /usr/local/bin/crproxy + wget https://github.com/DaoCloud/crproxy/releases/download/v0.13.0-alpha.109/crproxy_linux_amd64 -O /usr/local/bin/crproxy && chmod +x /usr/local/bin/crproxy - name: Sync Images to OSS&OBS run: | diff --git a/.github/workflows/sync-image.yml b/.github/workflows/sync-image.yml index 6b31bc7..0f5d84b 100644 --- a/.github/workflows/sync-image.yml +++ b/.github/workflows/sync-image.yml @@ -51,7 +51,7 @@ jobs: - name: Set up crproxy run: | - wget https://github.com/DaoCloud/crproxy/releases/download/v0.13.0-alpha.108/crproxy_linux_amd64 -O /usr/local/bin/crproxy && chmod +x /usr/local/bin/crproxy + wget https://github.com/DaoCloud/crproxy/releases/download/v0.13.0-alpha.109/crproxy_linux_amd64 -O /usr/local/bin/crproxy && chmod +x /usr/local/bin/crproxy - name: Sync Images to OSS&OBS run: | diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 418f268..22db99d 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -2,7 +2,7 @@ name: Sync on: schedule: - - cron: "1 16 * * *" + - cron: "1 0 * * *" workflow_dispatch: @@ -16,9 +16,12 @@ jobs: - name: Set up crproxy run: | - wget https://github.com/DaoCloud/crproxy/releases/download/v0.13.0-alpha.108/crproxy_linux_amd64 -O /usr/local/bin/crproxy && chmod +x /usr/local/bin/crproxy + wget https://github.com/DaoCloud/crproxy/releases/download/v0.13.0-alpha.109/crproxy_linux_amd64 -O /usr/local/bin/crproxy && chmod +x /usr/local/bin/crproxy + + - name: Deep Sync Images to OSS&OBS + run: | + /usr/local/bin/crproxy sync --max-warn 100 ${{ secrets.STORAGE_ARGS }} --list-from-file ./mirror-deep.txt --deep - name: Sync Images to OSS&OBS run: | - ORIGIN_IMAGE=$(echo "${MESSAGE}" | grep SYNC | awk '{print $2}' | head -n 1 | sed "s/\r//g") - /usr/local/bin/crproxy sync --max-warn 100 ${{ secrets.STORAGE_ARGS }} --list-from-file ./mirror.txt + /usr/local/bin/crproxy sync --max-warn 100 ${{ secrets.STORAGE_ARGS }} --list-from-file ./mirror.txt --quic diff --git a/mirror-deep.txt b/mirror-deep.txt new file mode 100644 index 0000000..328c71d --- /dev/null +++ b/mirror-deep.txt @@ -0,0 +1,86 @@ +docker.io/library/adminer:latest +docker.io/library/alpine:latest +docker.io/library/amazoncorretto:latest +docker.io/library/arangodb:latest +docker.io/library/archlinux:latest +docker.io/library/bash:latest +docker.io/library/buildpack-deps:latest +docker.io/library/busybox:latest +docker.io/library/caddy:latest +docker.io/library/cassandra:latest +docker.io/library/centos:latest +docker.io/library/chronograf:latest +docker.io/library/composer:latest +docker.io/library/consul:latest +docker.io/library/couchbase:latest +docker.io/library/couchdb:latest +docker.io/library/debian:latest +docker.io/library/docker:latest +docker.io/library/eclipse-mosquitto:latest +docker.io/library/eclipse-temurin:latest +docker.io/library/elasticsearch:latest +docker.io/library/emqx:latest +docker.io/library/fedora:latest +docker.io/library/flink:latest +docker.io/library/friendica:latest +docker.io/library/gcc:latest +docker.io/library/ghost:latest +docker.io/library/golang:latest +docker.io/library/gradle:latest +docker.io/library/groovy:latest +docker.io/library/haproxy:latest +docker.io/library/haskell:latest +docker.io/library/hello-world:latest +docker.io/library/httpd:latest +docker.io/library/ibm-semeru-runtimes:latest +docker.io/library/influxdb:latest +docker.io/library/java:latest +docker.io/library/jetty:latest +docker.io/library/kibana:latest +docker.io/library/kong:latest +docker.io/library/logstash:latest +docker.io/library/mariadb:latest +docker.io/library/matomo:latest +docker.io/library/maven:latest +docker.io/library/mediawiki:latest +docker.io/library/memcached:latest +docker.io/library/mongo-express:latest +docker.io/library/mongo:latest +docker.io/library/mysql:latest +docker.io/library/nats-streaming:latest +docker.io/library/nats:latest +docker.io/library/neo4j:latest +docker.io/library/nextcloud:latest +docker.io/library/nginx:latest +docker.io/library/node:latest +docker.io/library/odoo:latest +docker.io/library/openjdk:latest +docker.io/library/owncloud:latest +docker.io/library/percona:latest +docker.io/library/perl:latest +docker.io/library/php:latest +docker.io/library/phpmyadmin:latest +docker.io/library/postgres:latest +docker.io/library/python:latest +docker.io/library/r-base:latest +docker.io/library/rabbitmq:latest +docker.io/library/redis:latest +docker.io/library/registry:latest +docker.io/library/rethinkdb:latest +docker.io/library/rockylinux:latest +docker.io/library/ros:latest +docker.io/library/ruby:latest +docker.io/library/rust:latest +docker.io/library/sentry:latest +docker.io/library/solr:latest +docker.io/library/sonarqube:latest +docker.io/library/spark:latest +docker.io/library/teamspeak:latest +docker.io/library/telegraf:latest +docker.io/library/tomcat:latest +docker.io/library/traefik:latest +docker.io/library/ubuntu:latest +docker.io/library/varnish:latest +docker.io/library/wordpress:latest +docker.io/library/yourls:latest +docker.io/library/zookeeper:latest