Skip to content

Commit

Permalink
feat:1. change README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JuckZ committed Nov 4, 2022
1 parent 18d1911 commit 931172f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/sync-images.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: "同步镜像"
name: "sync image"
on: workflow_dispatch
jobs:
sync-images:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: "安装image-syncer工具"
- name: "install image-syncer"
env:
CONFIG: ${{ secrets.CONFIG }}
run: |
wget -c /~https://github.com/AliyunContainerService/image-syncer/releases/download/v1.3.1/image-syncer-v1.3.1-linux-amd64.tar.gz -O - | tar -xz
echo "$CONFIG" > config.yaml
- name: "运行image-syncer"
- name: "run image-syncer"
run: ./image-syncer --config config.yaml
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@

![Alt](https://repobeats.axiom.co/api/embed/9d415bf247ba7e71729fa0e3eee8c29f0e885ec9.svg "Repobeats analytics image")

## 使用教程
This is a image syncer for your docker.

1. fork仓库
2. 修改example中config.yaml文件为自己的配置
3. 在仓库的【Settings】>【Secrets】中新建secret将文件内容放入其中
4. 运行【Actions】中的工作流即可
## Usage

1. Fork this repository
2. Modify the file (example/config.yaml) as your own configuration information
3. Create a secret named CONFIG([Settings]->[Secrets]), and fill in the value as the content of the above file
4. Run this action in your forked repository


## Roadmap/TODO

- [ ] record synchronized images in imagelist.yaml
Empty file added imagelist.yaml
Empty file.

0 comments on commit 931172f

Please sign in to comment.