Skip to content

Commit

Permalink
Update sync-images.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JuckZ authored Dec 1, 2022
1 parent 3012df3 commit 8ee55c7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/sync-images.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: "sync image"
on: workflow_dispatch
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'imagelist.yaml'
jobs:
sync-images:
runs-on: ubuntu-latest
Expand All @@ -13,5 +19,6 @@ jobs:
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
cat imagelist.yaml >> config.yaml
echo config.yaml
- name: "run image-syncer"
run: ./image-syncer --config config.yaml

0 comments on commit 8ee55c7

Please sign in to comment.