-
Notifications
You must be signed in to change notification settings - Fork 7
64 lines (59 loc) · 1.72 KB
/
registry.k8s.io-all-repos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: registry.k8s.io/all-repos
on:
workflow_dispatch:
inputs:
reason:
description: 'run action reason'
required: false
type: string
default: 'manually test'
schedule:
- cron: '* */3 * * *'
push:
branches:
- main
- dev
- bug/**
- fix/**
- bugfix/**
- feature/**
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
registry-k8s-io:
runs-on: ubuntu-latest
steps:
- name: Checkout result branch
uses: actions/checkout@v4
with:
repository: x-mirrors/gcr.io
ref: 'registry.k8s.io'
token: ${{ secrets.GITHUB_TOKEN }}
path: gcr.io
- name: Container Images Sync
uses: x-actions/python3-cisctl@v2
env:
GIT_REPO: "gcr.io"
SRC_IMAGE_LIST_URL: "https://raw.githubusercontent.com/x-mirrors/gcr.io/${{ github.ref_name }}/registry.k8s.io/all-repos.txt"
DEST_REPO: "docker.io/registryk8s"
SRC_TRANSPORT: "docker"
DEST_TRANSPORT: "docker"
DEST_TRANSPORT_USER: "xregistry"
DEST_TRANSPORT_PASSWORD: "${{ secrets.DEST_TRANSPORT_PASSWORD }}"
LOG_LEVEL: "DEBUG"
JOB_BATCH_COUNT: "8"
# AFTER_TIMEUPLOADEDMS: 1577808000000
- name: Public result to github
uses: x-actions/git-push@v1
continue-on-error: true
env:
GITHUB_EMAIL: 'me@xiexianbin.cn'
GITHUB_USERNAME: 'xiexianbin'
PUBLISH_REPO: https://${{ secrets.GITHUB_TOKEN }}@github.com/x-mirrors/gcr.io.git
PUBLISH_BRANCH: registry.k8s.io
PUBLISH_DIR: 'gcr.io'