Skip to content

Commit

Permalink
feat: sync
Browse files Browse the repository at this point in the history
  • Loading branch information
daflyinbed committed Jun 8, 2024
1 parent d260253 commit 6e0d189
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: sync
on:
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Sync
uses: hhyasdf/[email protected]
with:
images_file: ./sync/images.yml
auth_file: ./sync/auth.yml
env:
ALI_CR_USERNAME: ${{secrets.ALI_CR_USERNAME}}
ALI_CR_PASSWORD: ${{secrets.ALI_CR_PASSWORD}}
3 changes: 3 additions & 0 deletions sync/auth.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
registry.cn-shanghai.aliyuncs.com:
username: ${ALI_CR_USERNAME}
password: ${ALI_CR_PASSWORD}
15 changes: 15 additions & 0 deletions sync/images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
portainer/portainer-ee: registry.cn-shanghai.aliyuncs.com/mooncell/portainer-ee
traefik: registry.cn-shanghai.aliyuncs.com/mooncell/traefik
getsentry/relay: registry.cn-shanghai.aliyuncs.com/mooncell/relay
redis: registry.cn-shanghai.aliyuncs.com/mooncell/redis
memcached: registry.cn-shanghai.aliyuncs.com/mooncell/memcached
prom/prometheus: registry.cn-shanghai.aliyuncs.com/mooncell/prometheus
grafana/grafana-enterprise: registry.cn-shanghai.aliyuncs.com/mooncell/grafana-enterprise
grafana/loki: registry.cn-shanghai.aliyuncs.com/mooncell/loki
quay.io/prometheus/node-exporter: registry.cn-shanghai.aliyuncs.com/mooncell/node-exporter
gcr.io/cadvisor/cadvisor: registry.cn-shanghai.aliyuncs.com/mooncell/cadvisor
prom/mysqld-exporter: registry.cn-shanghai.aliyuncs.com/mooncell/mysqld-exporter
grafana/promtail: registry.cn-shanghai.aliyuncs.com/mooncell/promtail
quay.io/prometheus/memcached-exporter: registry.cn-shanghai.aliyuncs.com/mooncell/memcached-exporter
quay.io/oliver006/redis_exporter: registry.cn-shanghai.aliyuncs.com/mooncell/redis_exporter
postgres: registry.cn-shanghai.aliyuncs.com/mooncell/postgres

0 comments on commit 6e0d189

Please sign in to comment.